Does anyone know what might cause this error which prevents my program from
staring up.
Exception in thread "main" java.util.zip.ZipException: The system
cannot
find the file specified
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)
I don't get the problem on my system (Windows 2000) but one of my users has
reported it on Windows 98 and I cannot reproduce it.
Thanks for any ideas,
Martin
http://www.euclideanspace.com/
From: "Martin Baker"
Subject: Re: ZipException
Date: 09 April 2002 08:31
When I put the wrong program name in under windows 2000 I get:
Exception in thread "main" java.lang.NoClassDefFoundError:
NoSuchJar/mjbWorld
I guess the error messages under windows 98 must be different? (although in
both cases I found the word "main" confusing because it implied to
me that
my program had been started.
Also, I have been running the program as follows:
java mjbWorld.mjbWorld
i.e. the name after the dot specifies the file inside the jar to use, if I
change it to include the .jar extension i.e.:
java mjbWorld.jar.mjbWorld
then I get:
Exception in thread "main" java.lang.NoClassDefFoundError:
NoSuchJar/jar/mjbWorld
Can anyone suggest a form that will work on all operating systems and
configurations?
Thank you for the link to http://mindprod.com/classpath.html
, it looks
useful, perhaps it will answer my question?
Thank you for your helpful replies,
Martin
http://www.euclideanspace.com/