[英]Source folder is not a java project
I am working on eclipse on my mac and using gitHub to import a project. 我正在Mac上使用Eclipse并使用gitHub导入项目。 The import works fine except that when I try to add a class it doesn't work an says "Source folder is not a java project" I have googled this error some sources came up but nothing that solves my problem. 导入工作正常,但当我尝试添加类时不起作用,并说“源文件夹不是Java项目”,我用谷歌搜索了此错误,出现了一些源,但没有解决我问题的方法。
edited. 编辑。
You can specify it in Project -> Properties -> Java Build Path -> Source 您可以在项目->属性-> Java构建路径->源中指定它
It's kind of common practice, that open source project doesn't have any specific project settings for Eclipse or Idea or for some other environment tool. 这是一种常见的做法,开源项目没有针对Eclipse或Idea或某些其他环境工具的任何特定项目设置。 Usually those files are in git ignore or in git exclude. 通常,这些文件在git中忽略或在git exclude中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.