How can we start/stop a Windows Service from Java? For example, I would like to start and stop the mysql Windows Service from Java.
If start/stop is possible, then i
You may execute following commands via Runtime#exec method.
net start and net stop (full information is available at : http://technet.microsoft.com/en-us/library/cc736564%28WS.10%29.aspx)
Probably you will have to use cmd /c net start as it would execute the command under shell.