I have created a desktop application in Java using NetBeans 6.1 and made a jar file of the application. Now I want to make it automatically start up whenever a client's machine boots up.
How do I do that?
I have created a desktop application in Java using NetBeans 6.1 and made a jar file of the application. Now I want to make it automatically start up whenever a client's machine boots up.
How do I do that?
This installer can create a file with "msi" extension that will behave as regular windows installer. It bundles your jar file and JRE together into single file. The program acts as a "wizard", where you configure all necessary options.
Take a look at this product:Advanced Installer
Good luck.
There are many commercial installers which can do this http://www.advancedinstaller.com/jre-install.html
Are you looking for a free/OS one?
Thanks Krishna
If you simply want to have a java application autostarted in Windows you could just create a link in the users autostart folder calling javaw the same way you'd normally call java.
This is just meant FYI, the other suggestions are more general, of course, but this could be the simplest solution...
҉ works
I have found the following order best suite to take a decision for commercial or free one, to fit your needs (most of the following does auto startup + extra features):
Order show more features on top:
BitRock: see features i would really use this one, because it does all cross platform + Jnlp + Prerequisite
Tanukio: enter link description here
IzPack
Advancedinstaller: features
(optional) Jnlp web start: example (this should become future way of installing)
Please note that, prerequisite is not mentioned, most of there feature list, which is very important to have in all of them, because many case we use third party libraries/dependencies, so the best question would be to know if they support it or not.
Take a look at Tanuki's Java Service Wrapper. The Community version does what you need, plus a lot more.
If you only need to run a Java program periodically, I like pycron, which installs itself as a Windows service and then reads a Unix style crontab file where you would enter a line that tells pycron when it needs to run the java process (eg, every night at 3am).