JDK-8211288 : app-image fails to find JLI lib at launch time
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: internal
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-09-28
  • Updated: 2019-03-22
  • Resolved: 2018-10-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalFixed
Related Reports
Blocks :  
Relates :  
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

Comments
The mac issue might be caused by JDK-8210705
08-10-2018

Lowering to P2 since there is a workaround that won't block our internal testing. It will need to fixed soon, though.
28-09-2018

Workaround: copy lib/libjli.so to lib/jli/ or use a JDK 11 runtime image.
28-09-2018

The jpackager will need to be able to handle both an old layout and a new layout so that it can package up an application with a JDK 11 LTS runtime image in addition to being able to package an application with JDK 12.
28-09-2018