I am trying to convert an Windows installation of Java app created with Izpack to use JPackage provided In Java 14. The installer builds and installs, but when I try and run the exe it creates it fails, but gives no information about why it fails.
Is there a log or some way of finding out why it actually fails to start ?
Use jpackage --win-console
flag to enable console output, and run your app from CMD.exe so can see any output it writes.
However if you leave jpackage --win-console
enabled, console output is ON for every other EXE you add with --add-launcher UNLESS the properties file for the launcher contains the line win-console
which turns off console. It doesn't seem to work the other way around.
Its easier to work out what jpackage is doing by making the --main-class a Hello World / dump System properties + env.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With