Solved

Exception in thread "main" - invalid END header

Posted on 2002-04-17
4
4,773 Views
Last Modified: 2007-12-19
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
Comment
Question by:Dan_Shule
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 200 total points
ID: 6949170
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
 

Author Comment

by:Dan_Shule
ID: 6952029
You are correct. The file was corrupted.
What is the latest version and where can I get it?
0
 
LVL 92

Expert Comment

by:objects
ID: 6952113
Latest is 1.4, and can be obtained from java.sun.com.
0
 
LVL 92

Expert Comment

by:objects
ID: 6957436
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question