How to start java project's exe file as window

2019-06-13 06:56发布

hi i tried to start java project's exe file as a service from command sc create "ServiceName" binpath= "fullpath\Service.exe" start= auto it has been added to services but when i restart my PC it's status is stopped when i mannualy start it from services window it says Error 1053 : The service did not respond to the start or control request in a timely fashion i ve tried HKEY too but nothing happened any idea?

1条回答
爷、活的狠高调
2楼-- · 2019-06-13 07:47

You need a wrapper to really make a java program as a Windows service.

Take a look at YAJSW .

查看更多
登录 后发表回答