javawindows-servicessystem-monitoringsystem-status

Is there any way, in java, to check on the status of a windows service?


I am looking for a library that will allow me to look up the status of a windows service to verify that the service is started and running. I looked into the Sigar library, but it is GPL and therefor I cannot use it. A Commercial or BSD(ish) license is required as this will be bundled into commercial software.


Solution

  • If nothing else helps, try to think of a slightly different approach (if you can, of course), e.g.: