app-image fails to find JLI lib at launch time

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • internal
    • Affects Version/s: internal
    • Component/s: tools
    • Environment:

      Linux (also affects Mac)

      The launchers generated by jpackager load the native JLI library from $JAVA_HOME/lib/jli. The fix for JDK-8210931 moved the JLI library to $JAVA_HOME/lib eliminating the "jli" subdirectory. This caused a jpackager-generated app image to fail to launch with the following error message:

      $ ./myapp/HelloWorld/HelloWorld
      Failed to find library. .../myapp/HelloWorld/runtime/lib/jli/libjli.so
      HelloWorld Failed to locate JLI_Launch
      HelloWorld Failed to launch JVM

            Assignee:
            Andy Herrick (Inactive)
            Reporter:
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: