jexec fails to execute simple helloworld.jar

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 9, 10
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: