Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5450
  • Last Modified:

Exception in thread "main" - invalid END header

Do you know why would I get the following exception:

prompt> java -jar c06-snmpv1-trap-app-r1.jar -host 172.21.4.20
Exception in thread "main" java.util.zip.ZipException: invalid END header (bad central directory offset)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:112)
        at java.util.jar.JarFile.<init>(JarFile.java:117)
        at java.util.jar.JarFile.<init>(JarFile.java:55)


I'm using java version "1.0beta2" on a Sun machine.
0
Dan_Shule
Asked:
Dan_Shule
  • 3
1 Solution
 
objectsCommented:
Is the jar corrupt?
Can you open it with Winzip?

Java 1.0b2, been a long time since I've seen that version.
That could also be your problem, have you considered upgrading.
0
 
Dan_ShuleAuthor Commented:
You are correct. The file was corrupted.
What is the latest version and where can I get it?
0
 
objectsCommented:
Latest is 1.4, and can be obtained from java.sun.com.
0
 
objectsCommented:
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now