Juno - Java Build Path - project cannot be read or is not a valid ZIP file

有些话、适合烂在心里 提交于 2020-01-02 04:46:18

问题


I am getting this error:

Description Resource Path Location Type Archive for required library: 'src/Program.java' in project 'Home' cannot be read or is not a valid ZIP file Home Build path Build Path Problem

What is causing this error and how do I fix it?


回答1:


Please follow the navigation as below:

Right Click(project) -> Java Build Path ->Libraries

Fix all the entries there with red cross mark in the front. You also may want to remove them and add them fresh using remove and add button in the right of the wizard.




回答2:


Can you check, if src/Program.java is not among your libraries entries (Java Build Path ->Libraries)? There, you should include only jar files and directories, not source (.java) files.




回答3:


I was with the same problem. For solve it I removed the problematic lib and I added it again




回答4:


Right Click on Project -> Properties -> Java Build Path -> Libraries -> remove struts.xml



回答5:


Here is another of those mentioned fixes:

My build system (Gradle) added a required native library (dll) to the Eclipse build path (Right Click on Project -> Properties -> Java Build Path -> Libraries). Telling the build system not to add the native dll library to the Eclipse classpath solved the problem.



来源:https://stackoverflow.com/questions/13183355/juno-java-build-path-project-cannot-be-read-or-is-not-a-valid-zip-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!