Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with IntelliJ -> Cannot create class with name "Main"

Title states my problem, i get this error message:

Cannot Create Class Unable to parse template "Class"

Error message: Selected class file name 'Main.java' mapped to not java file type 'Files supported via TextMate bundles'

Anyone got any ideas on how I can solve this?

like image 219
QualZy Avatar asked May 24 '26 22:05

QualZy


1 Answers

Please check the File Types. It looks like Main.java file name or extension was mapped to the wrong file type by accident (Files supported via TextMate bundles). Remove the invalid type mapping to fix the problem. The name/extension should be mapped to Java files instead (the default setting).

See if disabling TextMate bundles plug-in helps.

like image 114
CrazyCoder Avatar answered May 26 '26 12:05

CrazyCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!