原文: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。后來在網上找到了解決辦法: 需要先安裝maven eclipse插件 m eclipse 執行命令mvn eclipse:clean ...

2015-09-18 13:58 0 3213 推薦指數:

查看詳情

the resource is not on the build path of a java project錯誤

在eclipse中,使用mavenimport了一個工程,但是在對某一個類進行F3/F4/ctrl+alt+H操作的時候報錯:“the resource is not on the build path of a java project”。 這種情況也常常發生在重新打開eclipse時 ...

Mon Jul 06 21:55:00 CST 2015 0 25089
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
eclipse java build path

Source:源文件和輸出文件目錄,如果創建一個項目時,沒有分開源文件和輸出文件,可以通過這個地方修改;多個源文件可以在一個項目里使用;例如,將應用程序的源代碼和Junit測試分開;在src同級目錄下 ...

Mon Mar 10 04:03:00 CST 2014 0 2709
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM