Actually, SC.EXE requires to create a special executable with the right hooks, which wraps the batch file. So it could not be the most viable solution.

There exist some possible alternatives (one of which we will probably choose for a future release of Lightstreamer after some testing):

+ Instead of Java Service Wrapper, use YAJSW (http://yajsw.sourceforge.net/).

+ Instead of Java Service Wrapper, use Java Service Launcher (http://jslwin.sourceforge.net/).

+ Install the batch file as a service through the Windows Resource Toolkit (http://support.microsoft.com/kb/137890).

+ Upgrade to the paid version of Java Service Wrapper (http://wrapper.tanukisoftware.org/do...tLicenses.jsp).