Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4502009

java -jar <Non Existing jar-file> crashes !!!

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.4.0
    • tools
    • sparc
    • solaris_8

      goldeneye:/net/sqindia/export/disk03/tools/surendra/jar-test 464 % java -version
      java version "1.4.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b78)
      Java HotSpot(TM) Client VM (build 1.4.0-beta3-b78, mixed mode)
      goldeneye:/net/sqindia/export/disk03/tools/surendra/jar-test 465 % ls
      ./ META-INF/ NewJar.jar* Test2.jar manifest
      ../ Main.class Test.jar Test2.java
      HelloWorld.java Main.java Test1.java junk/
      goldeneye:/net/sqindia/export/disk03/tools/surendra/jar-test 466 %
      goldeneye:/net/sqindia/export/disk03/tools/surendra/jar-test 466 %
      goldeneye:/net/sqindia/export/disk03/tools/surendra/jar-test 466 %
      goldeneye:/net/sqindia/export/disk03/tools/surendra/jar-test 466 % java -jar NonExistingJarFile.jar
      Exception in thread "main" java.util.zip.ZipException: No such file or directory
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:115)
              at java.util.jar.JarFile.<init>(JarFile.java:120)
              at java.util.jar.JarFile.<init>(JarFile.java:58)
      goldeneye:/net/sqindia/export/disk03/tools/surendra/jar-test 467 %

            darcy Joe Darcy
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: