原文: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