我知道其他人也有这个问题,但是我无法使其正常工作。
我从git导入了一个项目,添加类时出现错误消息“ Project is a Java project”,并且它未显示在运行配置中。 Project here if it is something wrong with the project and not eclipse。我已经听说过使用facet和maven项目的答案,但是我都没有。
我正在运行最新版本的eclipse并今天进行了干净安装
答案 0 :(得分:1)
错误应该是“ “Source folder is not a Java project””。
检查.project
和.classpath的内容。
您可以modify the .project
手动添加org.eclipse.jdt.core.javanature
。
(但是建议使用adding the java facet)
.project
和.classpath
can be manually generated,或者从另一个简单的Java Eclispe项目复制过来。