Fwd: Problem with jpackage/Windows and using a different runtime

Klaus Friese kfriese at dataplan.de
Mon Jun 3 12:14:54 UTC 2019


Hi,

I sent the a few weeks ago, but I don't get any answer. Is this the 
wrong place for my question?

Klaus


-------- Weitergeleitete Nachricht --------
Betreff: 	Problem with jpackage/Windows and using a different runtime
Datum: 	Thu, 9 May 2019 13:50:47 +0200
Von: 	Klaus Friese <kfriese at dataplan.de>
An: 	core-libs-dev at openjdk.java.net



Hi,

I downloaded the jpackage EA version from https://jdk.java.net/jpackage/ 
for some tests and I run into problems when using a different runtime 
(OpenJDK12) on Windows.

This is my setting:
OpenJDK12 installed in c:\Program Files\OpenJDK12
OpenJDK13 with jpackage installed  c:\Program Files\OpenJDK13

I created runtimes for both versions with:

    jlink --output myruntime
         --module-path ../jmods
         --add-modules ALL-MODULE-PATH
         --bind-services
         --compress=2
         --strip-native-commands

I created the app with

    jpackage create-app-image ^
         -o "/MyProject" ^
         -i /MyProject/path/to/my/jars ^
         -n application ^
         --runtime-image ..\..\OpenJDK12\bin\myruntime ^
         --main-class my.application.main.class ^
         --main-jar main.jar

On Windows:
When using the OpenJDK13 runtime everything is fine.
When using the OpenJDK12 runtime the app doesn't start and I just get 
the message "Failed to load JVM"

On MacOS
OpenJDK12 and OpenJDK13 are working fine.

Is this an error in jpackage or is the error on my side?

Best regards
dataplan GmbH
Klaus Friese
System Engineer Applications
------------------------------------------------------------------------


*dataplan GmbH*
Stahltwiete 23
22761 Hamburg

Geschäftsführer: Dr. Wolfgang Zetsche
HRB 31 083
Gerichtsstand: Hamburg
St. Nr.: DE118540281

Tel: +49 40 398 44 20
Fax: +49 40 390 26 39

www.dataplan.de <http://www.dataplan.de/>
www.facebook.de/dataplangmbh <http://www.facebook.de/dataplangmbh>
www.twitter.com/dataplangmbh <https://twitter.com/dataplangmbh>
kfriese at dataplan.de <mailto:kmueller at dataplan.de>


More information about the core-libs-dev mailing list