Solved

Exception in thread "main" - invalid END header

Posted on 2002-04-17
4
4,433 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
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
simple java question 3 59
servlet example 11 49
iterator/ListIterator approach 17 39
String array comparison 4 38
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
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…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

809 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