posted 10 years ago
Hi,
I have a javafx application "MAIN_PROGRAM.jar".
I would like the option for this to run as soon as pc boots up into windows.
If I put the jar file directly into startup folder, then the user is unable to delete this jar from the programs gui,
since it would be deleting itself while its still running which doesn't work.
So I came up with this idea:
Store the MAIN_PROGRAM.jar in a specific place (in the home folder), then let it
copy(or delete) as required, a small jar file, that can launch the MAIN_PROGRAM.jar file, using:
This seems to work most the time, but not every time, which is annoying.
My third try was to launch the MAIN_PROGRAM.jar using a bat file.
This seems to work, but the command prompt always flashes quickly on startup,
and the person I'm writing project for doesn't like this.
Are there any better solutions to the problem?
Thanks very much for any help.