1. 程式人生 > >解決java web專案匯入後出現的有關問題 -cannot be read or is not a valid ZIP file

解決java web專案匯入後出現的有關問題 -cannot be read or is not a valid ZIP file

解決java web專案匯入後出現的問題 —cannot be read or is not a valid ZIP file
  今天匯入以前的2個web專案後會出現以下三個錯誤:

  1. Archive for required library: ‘WebContent/WEB-INF/lib/readme.txt’ in project ‘xxxxxxxxx’ cannot be read or is not a valid ZIP file

  2. The project cannot be built until build path errors are resolved

  3. Target runtime Apache Tomcat v6.0 is not defined.

  這三個問題都很好解決,方法如下:

  1. 用記事本開啟專案根目錄的.classpath檔案,找到“”這一行,刪掉

  2. 第一個問題解決後,此問題也會消失

  3. 開啟專案根目錄下.settings資料夾中的ormore.xml檔案,將“