Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
When one invokes java with a wrong file name like this: $ java -jar nosuchfile.jar You get: 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>(ZipFile.java:112) at java.util.jar.JarFile.<init>(JarFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:65) This also happens with programatic invocation of new JarFile(...); But as you see it doesn't actually print the file name, which makes the debugging unnecessarily hard. ###@###.### 2004-04-15
|