错误:无法读取所需库的存档或不是有效的ZIP文件。 [英] Error: Archive for required library cannot be read or is not a valid ZIP file.

查看:254
本文介绍了错误:无法读取所需库的存档或不是有效的ZIP文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法设置我的java项目的构建路径。我目前处于合作社的IT地位,所以我对这一切有些新意。我的背景主要是C ++,我正在学习java。我也对Eclipse有新意(开普勒服务版本1)。



我正在处理现有程序的错误,需要让程序建立,所以我可以在...上下功夫。当我添加所有的外部.jar文件,我知道一个事实是正确的,我得到这个错误,其中两个:



存档为必需图书馆:'(文件位置)'无法读取或不是有效的ZIP文件



我团队中其他两名全职人员已将程序运行这些完全相同的.jar文件,一个运行Eclipse Indigo,另一个运行与我自己相同的开普勒版本。我也可以手动打开两个.jar文件,一切似乎都在那里。每次尝试解决这个问题之后,我已经刷新,清理并重启了日食。另外两个全职的家伙说他们从来没有看到这个错误。我想从任何有类似经历的人那里得到一些洞察力,所以我不用花更多的时间。

解决方案我有这个问题,只是通过从Libs目录中删除.jar文件来修复,然后copy->再次粘贴原始Jars。然后做一个完整的清洁 - >重建


I am having trouble setting up the build path of my java project. I am currently in a Co-Op IT position so I am somewhat new to all this. My background is mostly in C++ and I am learning java on the fly. I am also somewhat new to Eclipse (Kepler service release 1).

I am working on a bug on an existing program and need to get the program to build so I can work on it. When I add all of the external .jar files that I know for a fact are the right ones, I am getting this error on two of them :

"Archive for required library: '(location of file)' cannot be read or is not a valid ZIP file"

Two of the other full time guys on my team have gotten the program to run with those exact same .jar files, one running Eclipse Indigo and the other running the same Kepler version as myself. I also was able to open the two .jar files manually and everything appears to be there. After every trial trying to fix this, I have refreshed, cleaned and restarted eclipse. The two other full time guys said they have never seen this error. I would like to get some insight on this from anyone who has any similar experiences so that I don't have to use up much more of their time.

解决方案

I Had this issue, just fixed by deleting .jar files from Libs directory then copy->paste original Jars again. Then do a complete clean -> rebuild

这篇关于错误:无法读取所需库的存档或不是有效的ZIP文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆