I first read on
https://openjdk.java.net/jeps/343
Then I was looking for the download and somewhere found the links
http://download2.gluonhq.com/jpackager/11/jdk.packager-linux.zip
http://download2.gluonhq.com/jpackager/11/jdk.packager-osx.zip
http://download2.gluonhq.com/jpackager/11/jdk.packager-windows.zip
Since I'm on windows with OpenJDK11 installed I downloaded
http://download2.gluonhq.com/jpackager/11/jdk.packager-windows.zip
and extracted it to the JDK bin directory.
Running it from the command line with the --version option gives
> jpackager.exe --version
"c:\Programme\java\openjdk-11_28_windows-x64_bin\jdk-11\bin\java.exe"
-Xmx512M --module-path
"c:\Programme\java\openjdk-11_28_windows-x64_bin\jdk-11\bin"
--add-opens jdk.jlink/jdk.tools.jlink.internal.packager=jdk.packager -m
jdk.packager/jdk.packager.Main "--version"jpackager version 11
Thomas
Am 16.12.2019 um 15:14 schrieb Andy Herrick:
That was my initial reaction too, but I don't believe that is the
problem here.
The arguments to jpackage used indicate you are using an older early
access version of jpackage.
Can you try again using the jpackage in the latest JDK14 EA from
https://jdk.java.net/14/ ?
/Andy
On 12/15/2019 8:46 PM, Scott Palmer wrote:
Welcome to Windows.
The .exe is a Windows app not a Console app. This is a distinction
that only Microsoft seemed to think was needed. All other platforms
are sane.
There is command line option to make a console app.
--win-console
Scott
On Dec 14, 2019, at 12:22 PM, Thomas Vatter <[email protected]>
wrote:
Hi,
I've created a modular jar and jre image by jlink.
I tested it with this command:
PS C:\_dev\exebase\SimpleApp> .\jimage\bin\java.exe -m SimpleApp
Dec 14, 2019 6:07:39 PM simpleapp.SimpleApp main
INFO: SimpleApp says hello
It says "SimpleApp says hello" in the powershell window.
Then I packaged it by
jpackager.exe create-image --input dist --output jp_out --name test01
--icon icn\favicon.ico --runtime-image jimage --main-jar SimpleApp.jar
This creates in the output folder a file structure with an exe file
in it.
When I execute the exe file fron the powershell there is no error
message, but it doesn't say "SimpleApp says hello" any more.
Is something wrong?
regards
Thomas