jpackager

Thomas Vatter thomas_vatter at web.de
Mon Dec 16 07:47:51 UTC 2019


Hi Scott,

thank you for you answer and explainationr, I did another test the
weekend, with a JFrame Window and this is shown.

Thomas

Am 16.12.2019 um 02:46 schrieb Scott Palmer:
> 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