jpackage usage

Bernd Eckenfels ecki at zusammenkunft.net
Wed Jan 16 21:03:15 UTC 2019


Is this a console application? I think the launcher won’t show that. So the program actually runs, it just not displays a console window.

Gruss
Bernd
--
http://bernd.eckenfels.net

________________________________
Von: core-libs-dev <core-libs-dev-bounces at openjdk.java.net> im Auftrag von Skillzore Gaming <simpa16_90 at hotmail.com>
Gesendet: Mittwoch, Januar 16, 2019 9:15 PM
An: core-libs-dev at openjdk.java.net
Betreff: jpackage usage

Hi!

I am trying out jpackage from https://jdk.java.net/jpackage/. I have been trying to figure out how to get it to build a working exe file.
I have a helloWorld.jar built by gradle which is runnable and runs fine with "java -jar helloWorld.jar". But when I try to use it to build an exe file, the resulting installation (from the built exe file) does not work as expected.
I build the exe file with
jpackage.exe create-installer exe -n "hello" -j helloWorld.jar -o . -i . -c HelloWorld

It installs just fine, but when trying to run the resulting hello.exe nothing happens. I think that I am doing something wrong in the creation of the exe. I am a bit unsure of what the -o, -i and -c parameters are intended to do and that is probably where I fail.
Any insight would be appreciated since I am hoping to use this on a larger project later and the interwebs do not have much information on this as of yet.

Regards, Simon


More information about the core-libs-dev mailing list