原文:the resource is not on the build path of a java project错误

在eclipse中,使用mavenimport了一个工程,但是在对某一个类进行F F ctrl alt H操作的时候报错: the resource is not on the build path of a java project 。 这种情况也常常发生在重新打开eclipse时。 原因:在该工程的构建路径中找不到该类。 解决方法: . 找到buildpath下面的src下的文件remove掉 ...

2015-07-06 13:55 0 25089 推荐指数:

查看详情

this compilation unit is not on the build path of a java project

在eclipse中新建maven project后,会自动生成main\test目录结构,新建一个测试类,然后编辑类文件时,总是提示错误:this compilation unit is not on the build path of a java project。后来在网上找到 ...

Fri Sep 18 21:58:00 CST 2015 0 3213
Java Build Path 详解

1.设置"source folder"与"output folder". * source folder:存放.java源文件的根目录; * output folder:.class编译输出的根目录; * 纯“java project”中,一般把"src"设置为source ...

Wed Aug 25 00:28:00 CST 2021 0 160
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM