简体   繁体   English

Eclipse错误“此编译单元不在Java项目的构建路径上

[英]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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse Oxygen 这个编译单元不在java项目的构建路径上 - Eclipse Oxygen This compilation unit is not on build path of java project Eclipse Maven - 代码完成失败“此编译单元不在 Java 项目的构建路径上”和“无法下载索引”错误 - Eclipse Maven - Code Completion fails "This compilation unit is not on the build path of a Java project" and "Failed to Download Index" Error 编译单元不在 Java 项目的构建路径上 - Maven - The compilation unit is not on the build path of a Java project - Maven 编译单元不在 Java 项目的构建路径上 - Compilation unit is not on the build path of a Java project 此编译单元不在 Java 项目的构建路径上 - This compilation unit is not on the build path of a Java project 为什么我的 gradle 项目在我输入句点 ('.') 时显示“此编译单元不在 Java 项目的构建路径上”? - Why is my gradle project saying "This compilation unit is not on the build path of a Java project" whenever I type a period ('.')? 该资源不在 java 项目 (eclipse) 的构建路径上 - The resource is not on the build path of a java project (eclipse) Eclipse:资源不在 Java 项目的构建路径上 - Eclipse: The resource is not on the build path of a Java project Eclipse忘记了项目构建路径中的Java库 - Eclipse forgets Java library in project build path Eclipse在Kotlin + Java项目中发生编译错误,但是使用Maven构建项目 - Compilation error in Eclipse in Kotlin + Java project, but project builds with Maven
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM