JDK-8171858 : Application fail to launch with early access build 150 in both Oracle Linux 7.0 and Ubuntu
  • Type: Bug
  • Component: deploy
  • Sub-Component: packager
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2016-12-21
  • Updated: 2017-07-21
  • Resolved: 2016-12-23
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.
JDK 9
9Fixed
Related Reports
Duplicate :  
Description
Steps to reproduce

1. Download latest 150 ea build from artifacts website.

2. extract the build to a folder say 'jdk150' and set export 
JAVA_HOME='jdk150' and export PATH=$JAVA_HOME/bin:$PATH

3. download the attached simple normal jar to folder 'simplenormaljar'

4. execute the following command at command line.

javapackager -deploy -verbose -BmainJar=com.greetings.jar -srcdir simplenormaljar -srcfiles com.greetings.jar -Bclasspath=com.greetings.jar -appclass com.greetings.App1 -outdir bundles -native rpm -name SimpleTest

5. check the attached log "build150_error_log.txt" for complete execution log.

here is the snippet of error i am facing

<Snippet>
/opt/SimpleTest/SimpleTest 
Failed to find library. /opt/SimpleTest/runtime/lib/amd64/jli/libjli.so
SimpleTest Failed to locate JLI_Launch
SimpleTest Failed to launch JVM

</Snippet>

6. Also Check the following contents in log file.

Module jdk.crypto.pkcs11 does not exist.
Module java.httpclient does not exist.


Comments
launcher working in build 178. fix verified in java version "9" Java(TM) SE Runtime Environment (build 9+178) Java HotSpot(TM) 64-Bit Server VM (build 9+178, mixed mode)
21-07-2017

This fix will likely make it into build 152.
23-12-2016

Step 6 of this bug references modules that don't exist, I created a bug for this JDK-8171979.
23-12-2016

Changeset: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/2a0ff4fb858d
23-12-2016

I tested it and verified that it works on Ubuntu.
23-12-2016

+1
23-12-2016

sandbox: http://jfxsrc.us.oracle.com/hg/sandbox/javafx/9/packager/jfx/rt/rev/4e744b3da61e Webrev: http://cr.openjdk.java.net/~vdrozdov/JDK-8171858/webrev.00/
22-12-2016

it looks like libjli.so is not in lib/amd64 anymore. For b150 it's located in lib/jli/libjli.so
22-12-2016

I think it is a regression. I mean, it used to work and I don't know why it broke.
21-12-2016

is it a regression?
21-12-2016

Use modules/jdk.packager/src/test/examples/swingapp
21-12-2016

I was able to reproduce this bug with the changes to what I thought was a duplicate.
21-12-2016

Duplicate of https://bugs.openjdk.java.net/browse/JDK-8157913 which was just fixed and will be in build 151.
21-12-2016