views:

1537

answers:

5

Hi friends,

I have created a desktop application in java using NETBeans IDE 6.1... and made a jar file of the application. Now I want to make its auto start up in such a way that its start up whenever client machine is booted.

Thanks in advance

Balwant

+1  A: 

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

Krishna
+1  A: 

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.

Roman Kagan
They appear to have a freeware version. Have you experience with this product?
Thorbjørn Ravn Andersen
Hi, I have gone through the Advance Installer, and it works fine, but it is not running while I added auto start service. I don't understand what it needs. Please look into the image attachment![alt text][1] [1]: http://www.wintestorbit.info/ErrorInAdvanceInstaller.JPG
A: 

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).

Jim Ferrans
A: 

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...

Huxi
A: 

you can write batch file and place its location in Window registry (RUN).I will soon write about it...

did u write about it?
parxier