How I can run Java application at system startup on Windows/Linux/MacOS?
Any implementation of JNA/JNI shall be welcome.
How I can run Java application at system startup on Windows/Linux/MacOS?
Any implementation of JNA/JNI shall be welcome.
Take a look at http://wrapper.tanukisoftware.org. It provides a wrapper for java applications to run under the various operating systems. You can use the community edition.
You can consider your application as a service under linux, and add a script that could start it under /etc/init.d (on most distributions, I think). You'll then have to make the needed links to the runlevel folders, to decide when to run your application. I think you can use chkconfig too
A basic example of script can be found here
I don't have most clues for the other two systems, however.
On windows you can use reg add Add the path of your application to hklm/software/microsoft/windows/current version/run To see more ,on command prompt type reg add /? Alternatively yo can use system call to add it from your application itself