Rafał Developer
Rafał Developer

Reputation: 2055

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

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

enter image description here

enter image description here

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

Upvotes: 5

Views: 19451

Answers (5)

marc
marc

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

vanz
vanz

Reputation: 337

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

Upvotes: 2

Sandeep vashisth
Sandeep vashisth

Reputation: 1098

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

Upvotes: 1

dan
dan

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

Yogendra Singh
Yogendra Singh

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

Related Questions