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
$ ./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
- blocks
-
JDK-8200758 JEP 343: Packaging Tool (Incubator)
- Closed
- relates to
-
JDK-8210705 Stop exporting all symbols on macosx
- Resolved
-
JDK-8211959 JLI_Launch unable to launch a JVM on Mac following the fix for JDK-8210931
- Closed
-
JDK-8210931 JLI and launchers normalization and cleanup
- Resolved