Eclipse报错:this compilation unit is not on the build path of a java project
程序员文章站
2022-04-28 09:24:41
...
从gitHub拉去一个项目,直接导入,想打印一句话,发现问题
然后根据网上答案
原因是新安装的eclipse缺少某个组件,在E:\git_install\scala_eclipse_git_work\项目名称/.project文件添加
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
重新启动eclipse 才会加载这个.project文件,然后就好了
上一篇: 淘宝下架“区块链白皮书代写服务”
下一篇: mvn build 报错 [ERROR] Failed to execute goal on project demo: Could not resolve dependencies
推荐阅读
-
【eclipse】eclipse报错:the resource is not on the build path of a java project
-
报错:this compilation unit is not on the build path of a Java project
-
Eclipse报错:this compilation unit is not on the build path of a java project
-
Eclipse中This compilation unit is not on the build path解决办法
-
this compilation unit is not on the build path of a Java project
-
【eclipse】eclipse报错:the resource is not on the build path of a java project