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

app-image fails to find JLI lib at launch time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • internal
    • internal
    • tools
    • 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

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

              Created:
              Updated:
              Resolved: