This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The question is: If a certain NT service starts, pauses or stopped by user, is there any possible for another Java application to detect that?? Or we can say that the question boils down to how to use Java to start, pause and stop a service that registered on NT. Any one be helpful will be greatly appreciated.
You can run a .bat file from your Java app to start, stop, pause, whatever. Check out the 'net' command on the DOS prompt. For example: 'net start "My Service"' I don't know about checking to see if a service is running, but there probably is a way. Anyone else? Hope this helps!