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

I get this error:

Description Access path to the resource Archive type for the required library: 'src / Program.java' in the "Home" project cannot be read or the ZIP file is invalid Main Path construction Build path error

enter image description here

enter image description here

What causes this error and how to fix it?

+4
source share
5 answers

Please follow the navigation as below:

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

Lock all entries there with a red cross mark in front. You can also remove them and add them using the remove and add buttons on the right side of the wizard.

+8
source

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

+2
source

I had the same problem. To do this, I deleted the problem library and I added it again

+2
source
 Right Click on Project -> Properties -> Java Build Path -> Libraries -> remove struts.xml 
+1
source

Here is another of the fixes mentioned:

My build system (Gradle) added the required native library (dll) to the Eclipse build path (Right click on the project -> Properties -> Java Build Path -> Libraries). By reporting that the build system does not add the native DLL library to the Eclipse class path, the problem is resolved.

+1
source

Source: https://habr.com/ru/post/1443508/


All Articles