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

app-image fails to find JLI lib at launch time

    Details

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

      Linux (also affects Mac)

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                herrick Andy Herrick
                Reporter:
                kcr Kevin Rushforth
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: