Thank you, yes. In fact I'm packaging a GUI Application, I was just
having a first try with a simple console application.
Thomas
Am 16.12.2019 um 16:05 schrieb Schnoor Jonas:
Notice the different naming: jpackage*r* vs. jpackage (without the trailing
*r*).
The primary purpose of JPackage*r* seems to be to package JavaFX (read: GUI)
applications and AFAIK is a backport by GluonHQ of an EA version of JPackage
that probably did not yet have the --win-console option.
If you want to package a Windows console application you will have to use
JPackage from JDK14 with the --win-console option.
Jonas
-----Ursprüngliche Nachricht-----
Von: core-libs-dev [mailto:core-libs-dev-boun...@openjdk.java.net] Im Auftrag
von Thomas Vatter
Gesendet: Montag, 16. Dezember 2019 15:44
An: core-libs-dev@openjdk.java.net
Betreff: Re: jpackager
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 <thomas_vat...@web.de>
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
Please see our data privacy policy:
https://www.scheidt-bachmann.de/en/data-privacy/
Important Notice: This E-Mail and any files attached are confidential and may
contain privileged information.
If you are not the intended recipient, do not forward or disclose this E-Mail,
open any attachments, make any copies or save this E-Mail anywhere.
Please delete this E-Mail from your system and notify the sender (as applicable
also by phone +49 2166 266-0). Thank you very much.
To send this email we must process the following personal data: Your email
address, first name and surname.
Your data is processed solely for the purpose of sending this email and passed
on to third parties only for this purpose.
You have been included in the circle of recipients for our emails due to your
professional, social or political position. If this position changes, or you
inform us that you do not want to receive emails from us, or you object to the
further processing of your data, we will delete your data and no longer use it.