解决java 项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
来源:互联网 发布:java简单金字塔代码 编辑:程序博客网 时间:2024/05/16 09:59
今天导入以前的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>”
转载自:http://www.cnblogs.com/haimingwey/archive/2012/07/17/2595473.html
- 解决java web项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- 解决java 项目导入后出现的问题 ---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
- 解决使用maven的java web项目导入后出现的有关问题, -cannot be read or is not a valid zip file
- 解决java web项目出现的有关问题 -cannot be read or is not a valid ZIP file
- Myeclipse的problem中出现cannot be read or is not a valid ZIP file解决
- 关于Eclipse导入的Maven项目报:" cannot be read or is not a valid ZIP file"错误的解决方案
- cannot be read or is not a valid ZIP file
- cannot be read or is not a valid ZIP file
- cannot be read or is not a valid ZIP file
- maven 构建项目出现(Archive for required library: cannot be read or is not a valid ZIP file)
- 解决 eclipse XXX cannot be read or is not a valid ZIP file
- 构建maven项目报cannot be read or is not a valid ZIP file 错
- cannot be read or is not a valid ZIP file问题
- maven项目 关于Eclipse报:" cannot be read or is not a valid ZIP file"的解决方案
- 关于Eclipse报:" cannot be read or is not a valid ZIP file"的解决方案
- XXX cannot be read or is not a valid ZIP file
- WebView中接口隐患与手机挂马利用
- c# rdlc报表使用
- ant非法字符:\65279 错误
- Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [activ
- ant打包时内存溢出
- 解决java 项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- 在配置hibernate.cfg.xml时需指定使用数据库的方言
- OAuth完全手册_国内篇
- SSL/TLS/DTLS对比
- Auth认证协议原理分析及使用方法
- 求前100个素数
- Missing requirement: Subclipse Integration for Mylyn 3.x (Optional)
- Xcode8使用出现 Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer…
- android上改变listView的选中颜色