java.util.zip.ZipException: invalid END header
843798Jul 8 2008 — edited Sep 12 2009I get this error when I run the code:
try {
jFile = new JarFile(jarBuildFile.getAbsolutePath());
} catch (IOException ex) {
System.out.println("Got exception: "+ex);
}
but only on very large jar files - about 2.5GB in size.
With JDK 1.4, I get the error, jar file too large.
With JDK 1.5, I get the above error (invalid END header).
With JDK 1.6, it reads the file for about 5 seconds, then reports that the file cannot be opened.
Smaller jar files work fine. This jar file has two files in it, a small XML file and a large video file.
I'm running under windows XP.
Doing a jar -tvf (jdk 1.5) on the large jar file works fine.
The file was built with the jar command (jdk 1.5).
Is this a bug in the JDK?
Thank you!
-Joe
http://www.lovehorsepower.com