0
In Eclipse I wanted to delete set of class files and build once again.
我試圖刪除一個文件,並試圖建立再次刷新項目 和工作場所這是行不通的了。java.lang.NoClassDefFoundError重樓班在Eclipse
但是,如果我在相關的.java文件中做了dummy編輯並現在構建了整個項目,它將生成已刪除的類文件。
我的問題是與1000或n的文件相同的情況我不能做同樣的虛擬編輯請讓我知道該怎麼做。
刪除建立文件夾中的文件後建設時的問題是它試圖加載刪除的文件,但這些文件不可用在那裏。因此在Eclipse .log
文件說它沒有找到類文件。
請幫我解決這個問題。謝謝提前。從Eclipse的.log文件
示例日誌:
!ENTRY org.eclipse.jst.server.tomcat.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Publishing failed with multiple errors
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Could not delete D:\WorkPlace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\amec\WEB-INF\lib\axis-ant.jar. May be locked by another process.
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Could not delete D:\WorkPlace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\amec\WEB-INF\lib\eclipselink.jar. May be locked by another process.
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Could not delete D:\WorkPlace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\amec\WEB-INF\lib\postgresql.jar. May be locked by another process.
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-05-16 21:01:10.815
!MESSAGE Could not delete D:\WorkPlace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\amec\WEB-INF\lib\sqljdbc4.jar. May be locked by another process.
!SUBENTRY 1 org.eclipse.core.resources 4 271 2013-05-16 21:01:10.815
!MESSAGE File not found: D:\WorkPlace\amec\build\classes\ecnet\rd\helper\AMECGRNHelper1.class.
!SUBENTRY 1 org.eclipse.core.resources 4 271 2013-05-16 21:01:10.815
!MESSAGE File not found: D:\WorkPlace\amec\build\classes\ecnet\rd\helper\AMECGRNHelper2$1.class.
!SUBENTRY 1 org.eclipse.core.resources 4 271 2013-05-16 21:01:10.815
!MESSAGE File not found: D:\WorkPlace\amec\build\classes\ecnet\rd\helper\AMECGRNHelper2.class.
!SUBENTRY 1 org.eclipse.core.resources 4 271 2013-05-16 21:01:10.815
我在其真實路徑中手動刪除了文件(* .class),並嘗試「clean」和「build」也不起作用。感謝您的回覆。 – sunleo
這是一個遠射,但確保文件夾本身不受寫保護或類似的東西。 – pcalcao
當然不是因爲它最初產生了,而且對於單個文件它在編輯某些東西時起作用。 – sunleo