简体   繁体   中英

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 :

替代文字

This compilation unit is not on the build path of a Java project.

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. I checkouted this project from SVN, it wasn't developed on my 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 technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM