start windows service from java

后端 未结 5 1382
粉色の甜心
粉色の甜心 2020-12-13 07:05

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

5条回答
  •  别那么骄傲
    2020-12-13 07:42

    Did you try JNA? It has some good api to do this.

    JNA is very active in SO - you could come back here with specific questions.

提交回复
热议问题