问题描述
标题说明了我的问题,我收到此错误消息:
Title states my problem, i get this error message:
错误消息: 所选类文件名"Main.java"映射到非Java文件类型 通过TextMate捆绑包支持的文件"
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?
推荐答案
请检查文件类型.看来Main.java
文件名或扩展名偶然被映射到错误的文件类型(Files supported via TextMate bundles
).删除无效的类型映射以解决此问题.名称/扩展名应改为映射到Java文件(默认设置).
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).
查看是否禁用 TextMate包插件有帮助.
See if disabling TextMate bundles plug-in helps.
这篇关于IntelliJ的问题->无法创建名称为"Main"的类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!