Solved

Exception in thread "main" - invalid END header

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now