jpackager

Andy Herrick andy.herrick at oracle.com
Mon Dec 16 14:14:49 UTC 2019


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_vatter at 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
>>
>>
>>
>>
>>
>>


More information about the core-libs-dev mailing list