xxx cannot be read or is not a valid ZIP file 解决方案
程序员文章站
2022-03-02 16:53:19
...
常见问题
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.
An internal error occurred during: "Initializing Java Tooling
解决方法
1. 找到lib相应jar包删掉,然后重新导进去正确的jar包
第一个问题解决后,此问题也会消失
打开项目根目录下.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>”
- 重置窗口布局: windows > perspective > reset perspective
如果重置窗口布局不管用的话,采用下面的这种方法:
删除当前工作目录下/.metadata/.plugins/org.eclipse.core.resources/.project,然后重新启动Eclipse
推荐阅读
-
Failed to load project configuration:xxx cannot read file .idea/misc.xml
-
cannot be read or is not a valid ZIP file
-
maven项目 关于MyEclipse报:" cannot be read or is not a valid ZIP file"的解决方案
-
xxx cannot be read or is not a valid ZIP file 解决方案
-
解决使用maven的java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file...
-
eclipse maven error: Archive for required library in project cannot be read or is not a valid ZIP fi