Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.util.zip.ZipException: invalid END header

843798Jul 8 2008 — edited Sep 12 2009
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2009
Added on Jul 8 2008
3 comments
2,878 views