devxlogo

Java and NT Services

Java and NT Services

Question:
How can I run a Java server application as an NT service?

Answer:
You can run a Java server appliation as an NT service if you use theMicrosoft SDK for Java. You can download the latest version fromMicrosoft’s web site. The SDK includes a package called com.ms.servicewhich contains a Service class, with which NT services can be created.You also need to turn the Java application into an executable NT serviceusing the jntsvc.exe utility provided with the SDK. If you look inthe bin directory of the SDK, there is a jntsvc subdirectory which containsjntsvc.exe and an example Java program implementing an NT service. Moreinformation is available in the Microsoft SDK for Java documentation.

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist