[英]Eclipse error "This compilation unit is not on the build path of a Java project
Has anyone experienced this error before: this happens when I hit CTRL + space, here is the error : 有人遇到过此错误吗:当我按CTRL +空格时,会发生此错误:
This compilation unit is not on the build path of a Java project.
该编译单元不在Java项目的构建路径上。
This is a maven project, mvn eclipse:eclipse doesn't help I mean it compiles and runs just fine just something is wrong and I can't figure out what. 这是一个maven项目,mvn eclipse:eclipse不能帮助我,它可以编译并运行得很好,只是出了一些问题,我不知道是什么。 I checkouted this project from SVN, it wasn't developed on my PC.
我从SVN签出了这个项目,它不是在我的PC上开发的。
EDIT 编辑
Not only it does not work but also when I try to open generated classes from target dir I get message the class file is not on the classpath
不仅不起作用,而且当我尝试从目标目录打开生成的类时,我收到消息,
the class file is not on the classpath
Look at this post: 看这个帖子:
Eclipse/Java code completion not working Eclipse / Java代码完成无法正常工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.