1. 程式人生 > >The project cannot be built until build path errors are resolved

The project cannot be built until build path errors are resolved

這種錯誤的發生,通常是因為專案的 .classpath 檔案裡面記錄了一些目錄,位置,但是它們卻被刪除了,所以導致專案被編輯器認為無法編譯。

例如:我的專案有如下錯誤

Description    Resource    Path    Location    Type
Project 'crawler' is missing required source folder: 'src/test/java'    crawler        Build path    Build Path Problem

這個專案因為是maven專案,所以在此專案新建的時候,專案會自動的生成 /src/main/java 和 /src/test/java 兩個路徑

,同時把這兩個路徑寫入到專案根目錄下的 .classpath 檔案中,等到專案被載入的時候,這兩個目錄就會被檢測,如果不存在的話,機會提示上面的錯誤。

當然 /src/test/java 被刪除是有可能的,因為它只是用來做測試的,所以可能會被刪除掉,為了解決這個問題就需要把 .classpath 裡面的對應的 <classpathentry kind="src" path="src/test/java"/> 配置給刪除掉就可以了,如果刪除了還是沒有反應的話,你就把編輯器重啟一下就好了。

相關推薦

轉:問題解決:The project cannot be built until build path errors are resolved

run problems call resolv 選擇 ron cal jdk 信息 轉自:http://blog.csdn.net/marty_zhu/article/details/2566299今天在eclipse裏遇到這個問題,之前也遇到過,不過,通過clean一下

關於eclipse的Description:Resource Path Location Type The project cannot be built until build path errors are resolved的問題

blog 為什麽 技術 pro path 版本更新 分享 ror lips 問題如上 一開始安裝也有問題,安裝完打不開顯示出錯,打開eclipe的安裝目錄,找到eclipse.ini,在最後加上後面這麽一行就好了。 --add-modules=ALL-SYSTEM 百度了

Java問題解決:The project cannot be built until build path errors are resolved

lib 一點 problems tools win 文件中 project get runt 參考:http://blog.csdn.net/marty_zhu/article/details/2566299 1,看看project -- Build Automatical

The project cannot be built until build path errors are resolved” 的解決方法

-c style jre until java PE ava str per 【描述 】 添加一個java 項目 , 結果項目出現報錯 - The project cannot be built until build path errors are resolved 【

原來是這個原因才報The project cannot be built until build path errors are resolved

今天開啟專案突然有一個類飄紅,顯示有包沒有被載入到, 控制檯Problems報錯:The project cannot be built until build path errors are resolved, 百度上查詢解決辦法,說commons-beanutils 依賴的jar

解決:The project cannot be built until build path errors are resolved

今天開啟專案突然有一個類飄紅,顯示有包沒有被載入到, 控制檯Problems報錯:The project cannot be built until build path errors are resolved, 百度上查詢解決辦法,說commons-beanutils

The project cannot be built until build path errors are resolved

這種錯誤的發生,通常是因為專案的 .classpath 檔案裡面記錄了一些目錄,位置,但是它們卻被刪除了,所以導致專案被編輯器認為無法編譯。 例如:我的專案有如下錯誤 Description    Resource    Path    Location    Type P

The project cannot be built until build path errors are resolved錯誤。

在build path中添加了他的機器裡面lib目錄下的一些包,這些細節被工程記錄下來了。當你匯入這個專案的時候,會自動到你的電腦下找原來那個lib目錄下的jar包,很顯然,你沒有這個路徑 導致出

The project cannot be built until build path error

報錯;error:The project cannot be built until buildpath errors are resolved 翻譯:無法在生成路徑錯誤解決之前生成專案解決方法:1.專案滑鼠右鍵-----選擇properties----Java Bulid Path----Librari

The module is an Android project without build variants, and cannot be built

匯入 安卓專案報錯 Error:The module 'app' is an Android project without build variants, and cannot be built. Please fix the module's configuration in the build.gr

The module is an Android project without build variants, and cannot be built

匯入 安卓專案報錯 Error:The module 'app' is an Android project without build variants, and cannot be built. Please fix the module's configuration in the bu

錯誤提示: The project was not built since its build path is incomplete. Cannot find the class file for j

錯誤提示: The project was not built since its build path is incomplete. Cannot find the class file for j

eclipse svn外掛解除安裝 重新安裝 Subclipse解除安裝安裝 The project was not built since its build path is incomplete This client is too old to wor

安裝外掛的原則就是,要按照規則,外掛與本地的svn版本要一致, 這樣子本地和eclipse上面就可以無縫使用,不會出現問題 1.解除安裝eclipse  svn外掛   2,安裝新版的svn外掛 2.1,下載 找到網址或者zip包 下

關於eclipse出現The selection cannot be launched,and there are no recent launches

語法 選擇 wid 沒有 讀者 AR java語法 not lec 當出現這個問題的時候,應分為兩種情況,第一種為當你要運行的文件無main函數時,第二種為你要運行的類有main函數時 兩種問題總的解決方法就是先配置運行。也可能是程序主函數的問題。 對第一種情況:你找到

Sharepoint 2013 issue : The solution cannot be deployed. The feature 'XXXX' uses the directory "XXXX Feature" in the solution.

current stsadm tac cto tps pre try mage erro The Issue: I have a weird error when trying to Add a solution via PowerShell: Add-SPSolutio

VS2017 community創建模板錯誤 The document cannot be opened. It has been renamed, deleted or moved

nbsp rom ng- 模板生成 sfm visual mat block ati 當我使用我自己創建的模板生成工程,打開文件時,會出現“The document cannot be opened. It has been renamed, deleted or move

Dynamics CRM the field cannot be deleted because it is used in one or more process的解決方法

    在刪除一個查詢欄位時報如上的錯誤,報錯圖如下    第一想到的是這個欄位在哪個流程裡用了,去流程裡找遍了發現沒有哪個流程用到它,然後去開啟系統trace日誌,寄希望於有更詳細的日誌,結果又提示workflow,然後我們再去workflow

Android -- the project was not built due to a resource exists with a different case...

進行編碼時,工程前面莫名有個紅X,正當百思不得其解時,發現在[problems]下有如下的訊息輸出 ------ the project was not built due to a resource exists with a different case... ---

Eclipse:The selection cannot be launched,and there are no recent launches

Eclipse:The selection cannot be launched,and there are no recent launches 剛剛裝上eclipse,想寫個Java程式來試試。但是在寫好後不管是點選 run 還是 debug 程式都不能執行,都會彈出一個視窗,內容為

the selection cannot be run on any server 出現原因及解決辦法

一.出現原因:1.當在eclipse中project欄下,點選clean時,有時會導致上述問題2.Dynamic web module version和tomcat支援的不匹配二.解決辦法:1.重啟ec