Starting, Stopping and Querying services using Java

A Windows/Linux service could be stop and start using Java API. There are two version basically that do the job. Runtime class provides the old way to execute the OS commands that can be used for querying, stopping and starting the services.

For Java 1.5 onward you can also make use of ProcessBuilder class that gives you add-on for setting up the environment etc. before executing the OS command.

Recent

Comment

Profile

+Shell RS is a post graduate in computers applications, a software developer, vivid reader and part time blogger. He has been enjoying Web Surfing for last 14+ years. He loves music, movies, animals and greenery.