Reputation: 2055
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?
Upvotes: 5
Views: 19451
Reputation: 997
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.
Upvotes: 1
Reputation: 337
I was with the same problem. For solve it I removed the problematic lib and I added it again
Upvotes: 2
Reputation: 1098
Right Click on Project -> Properties -> Java Build Path -> Libraries -> remove struts.xml
Upvotes: 1
Reputation: 13272
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.
Upvotes: 2
Reputation: 34397
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.
Upvotes: 8