`

解决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文件,找到“<classpathentry kind=”lib” path=”WebContent/WEB-INF/lib/readme.txt”/>”这一行,删掉

2. 第一个问题解决后,此问题也会消失

3. 打开项目根目录下.settings文件夹中的org.eclipse.wst.common.project.facet.core.xml文件,将“<runtime name=”Apache Tomcat v6.0″/>”这一句改成现在所需要的tomcat版本,或者删除中间几行,只留下下面三行就行 “<?xml version=”1.0″ encoding=”UTF-8″?> <faceted-project> </faceted-project>”

分享到:
评论

相关推荐

    aspectjweaver-1.6.9.jar

    本文将深入探讨如何在Spring项目中配置和使用AspectJ,以及解决"无法解析org.aspectj"的异常问题。 首先,我们需要理解AspectJ的核心概念。Aspect是AOP的核心单元,它封装了特定的关注点,例如日志、事务管理等。在...

    thymeleaf-extras-eclipse-plugin-2.1-master.zip

    the directory it goes in must be a valid Java package name These are just short-comings of the current dialect scanning method, which itself is built upon Eclipse's own lookup mechanisms.

    Git-2.21.0-64-bit.zip

    * A new tag.gpgSign configuration variable turns "git tag -a" into "git tag -s". * "git multi-pack-index" learned expire and repack subcommands. * "git blame" learned to "ignore" commits in the ...

    VclZip pro v3.10.1

    - If a file does not extend beyond any of the original limitations (filesizes of 4 gig or 65535 files) then no Zip64 format information is included in the archive. - property isZip64 - tells you when ...

    Bochs - The cross platform IA-32 (x86) emulator

    configure option is deprecated and should not be used anymore. - Enable changing part of CPU functionality at runtime through .bochsrc. - Now you could enable/disable any of SSEx/AES/MOVBE/...

    8-07-14_MegaCLI for linux_windows

    SCGCQ00343310 Defect MegaCLI "adpBIOS dsply" command does not display correct information when set to BE or SOE SCGCQ00344574 Defect MegaCLI does not prompt user to reboot after update firmware SCGCQ...

    cuteEditor6.0

    .mpeg .mp3, .jpg .jpeg,.gif .png .pdf, .doc .txt, .doc .pdf, .zip 在线图片编辑 &lt;br/&gt;People that input content on a website are generally not web designers, ...

    ZendFramework中文文档

    Querying if the input is valid 14.5.3.2. Getting Invalid, Missing, or Unknown Fields 14.5.3.3. Getting Valid Fields 14.5.4. Using Metacommands to Control Filter or Validator Rules 14.5.4.1. The ...

Global site tag (gtag.js) - Google Analytics