Home » Category » Desktop Technologies

Desktop Technologies: ZipException

300| Wed, 19 Sep 2007 12:31:00 GMT| techniquea| Comments (1)

I created an executable jar file in XP and just threw it on an NT box, downloaded the jre1.4, updated the path variable and I'm getting this error:

Exception in thread "main" java.util.zip.ZipException: invalid END header (bad c

entral directory offset)

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(Unknown Source)

at java.util.jar.JarFile.<init>(Unknown Source)

at java.util.jar.JarFile.<init>(Unknown Source)

when trying to run from the command line.

(java -jar Name.jar)

It works fine in XP (but I have the full JDK installed).

I searched for this error in the forum but no one gave a good solution to the problem. Any ideas? Thanks.

Keywords & Tags: zipexception, desktop

URL: http://java.itags.org/java-desktop/24733/
 
«« Prev - Next »» 1 helpful answers below.
Solved. When I transferred the application to the other computer, I sent it in ASCII instead of binary. Thanks

techniquea | Mon, 09 Jul 2007 07:37:00 GMT |

Desktop Technologies Hot Answers

Desktop Technologies New questions

Desktop Technologies Related Categories