Problem with jpackage/Windows and using a different runtime
Andy Herrick
andy.herrick at oracle.com
Mon Jun 3 20:05:20 UTC 2019
Klaus:
I sent you this reply a few weeks back, and didn't get any further reply ...
/Andy
On 5/16/2019 10:59 AM, Andy Herrick wrote:
> Klaus:
>
> My apologies for not getting back to you sooner.
>
> I have tried the (nearly) the exact steps you give and can run the
> resultant app on windows.
>
> My best guess is that it is caused by a problem we have when there are
> spaces in the path given to --runtime-image. (similar to
> https://bugs.openjdk.java.net/browse/JDK-8223953), but so far I have
> not been able to reproduce.
>
> I assume ..\..\OpenJDK12\bin\myruntime resolves to a path including
> 'Program Files'/OpenJDK12
>
> For the failing case, can you post the contents of
> MyProject/application/app/application.cfg ? Usually when a "jpackage
> create-app-image" command succeeds but the app does not run you can
> see the problem in the cfg file.
>
> /Andy
>
>
>
> On 5/9/2019 7:50 AM, Klaus Friese wrote:
>> 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