java - Updating file in a jar throws ZipException -
I'm trying to update a file in an existing issue by using the command (in this example antlr): < / p> but I get the following message < / p> java.util.zip.ZipException: java.util.zip.ZipOutputStream.putNextEntry (ZipOutputStream.java:175) antlr / ANTLRError.class (on java.util.jar.JarOutputStream.putNextEntry : duplicate entries JarOutputStream.java on sun.tools.jar.Main.update (Main.java:508) on sun.tools.jar.Main.run (Main.java:185) on sun.tools.jar.Main.main : 92) (Main.java:1044) Any ideas?
-uf jar antlrworks-1.2.3.jar org / antlr / codegen / templates / java / Java.stg
After
You are trying to do the right thing, but the jar file is problematic - it has been twice the same The entry has been found :( (This is legal for a zip file, but is not really useful - and as you can see, it is a mpllan with jar .)
If you run
jar Tivif anti-Works -1.2.3. jar & gt; materials and then generate content See the file then you see Gay that many duplicate files you may antlr project should report (after they first checking out is not the same).
solution, you can remove the contents of the jar file, Again it will be jar, and then will have a "working" jar file that you can update. (If you only need to do this once, then you can remove it You can keep the file you want, and then you can Switch to the release of the lock instead of updating it.)
Comments
Post a Comment