问题
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