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

jexec fails to execute simple helloworld.jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9, 10
    • tools
    • b160
    • Verified

        jdk9 and jdk10 fail to execute a simple hello-world jar with jexec :

        jdk9/images/jdk/lib/jexec /java_test/hellojar/helloworld.jar
        invalid file (bad magic number): Exec format error

        While it works with jdk7 :

        jdk7/lib/jexec /java_test/hellojar/helloworld.jar
        Hello world from a jar file


        It seems change "8156478: 3 Buffer overrun defect groups in jexec.c " which changed jexec.c caused
        the issue in jdk9/10.

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: