I am a complete newbie when it comes to the finer points of java packaging.
I have written a TCP Data Server using Java-15 via jdk-15 that works quite happily when running under VSCode.
I want to distribute it as MRS_Server.exe hopefully without java needing to be loaded on the host machine nor having to distribute my code.
I have managed to run Jpackage with the following commands:-
jpackage --type app-image --name MRS_Server --input C:\Users\steve\Documents\workspace1_neon\Pi_Server --main-jar C:\Users\steve\Documents\workspace1_neon\Pi_Server\Pi_Server.jar
jpackage --type exe --app-image MRS_Server --name MRS_Server
Which produces MRS_Server-1.0.exe. Which, in turn, creates the folder C:\Program Files\MRS_Server which includes copies of my code in the MRS_Server\app folder, a MRS_Server\runtime folder which I assume contains all files required to run the server, and files MRS_Server.exe and MRS_Server.ico.
At this point I run C:\Program Files\MRS_Server\MRS_Server.exe ... nothing happens!?? I have run it on a machine without and security programs and added to the windows firewall. It should open a window and await traffic but nothing? The program is not displayed in the task manager.
What am I missing? I would rather not have to rewrite the server in another language.
Steve Hall