If you have a Java application and a batch file like this:

C:\jdk1.5.0_06\bin\java -jar myApp.jar %1 %2

But you want it to start at user logon or server boots up . How to do it? There are 3 recipes can help you.

1. Java Service tool from

http://forge.objectweb.org/projects/javaservice/

2. JavaServiceWrapper

http://wrapper.tanukisoftware.org/doc/english/index.html

3. AutoexNT

http://www.msterminalservices.org/autoexnt.cfm

4. How about running on Linux Daemon?

Launching Your Application (Linux / UNIX)

Java Daemon

Ref:

How to Run a Batch File Before Logging on to Your Computer

Running CruiseControl As a Windows Service

How do I Run JBoss as a Service on Windows

Converting Your Java App into a Windows Service

Linux:

Start JBoss On Boot with Linux

Advertisements