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

NoSuchMethodException JarFile.open when jar file is used in classpath

    XMLWordPrintable

Details

    • b10
    • Not verified

    Description

      $ java -XX:+TraceExceptions -cp hello.jar Hello
      [1.180s][info ][exceptions] Exception <a 'java/lang/NoSuchMethodException'{0x00000004110b1cf0}: java.util.jar.JarFile.close()>
       thrown in interpreter method <{method} {0x00007fcc87814078} 'getDeclaredMethod' '(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;' in 'java/lang/Class'>
       at bci 53 for thread 0x00007fccd801b000 (main)
      [1.180s][info ][exceptions] Exception <a 'java/lang/NoSuchMethodException'{0x00000004110b1cf0}: java.util.jar.JarFile.close()>
       thrown in interpreter method <{method} {0x00007fcc87b4c458} 'get' '(Ljava/util/zip/ZipFile;Ljava/io/File;I)Ljava/util/zip/ZipFile$CleanableResource;' in 'java/util/zip/ZipFile$CleanableResource'>
       at bci 18 for thread 0x00007fccd801b000 (main)

      Attachments

        Activity

          People

            sherman Xueming Shen
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: