- Posted by: sriramakrishna besta
- Posted on: May 01 2001 08:34 EDT
How can I make my java program run as a Windows NT Service?
Srinivas Masam& JayaKishore
- Running a java program as a windows NT Service by Mark Rees on May 01 2001 09:41 EDT
- Running a java program as a windows NT Service by Daniel Repik on May 01 2001 17:38 EDT
To do this you can use the executable shipped with Microsoft
SDK - jntsvc. Basically, what you do is implement a class that subclasses com.ms.service.Service. Compile this class using the microsoft compiler. Take the .class file and jnstvc over it. This will give you an executable that can be installed as a service by typing <Java Class Name>.exe /install.
Here's a site that contains some open source C code that will do the trick.
JBOSS FAQ answers this question.
You might also try out
also known as