How to start java project's exe file as window

2019-06-13 07:16发布

问题:

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:

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

Take a look at YAJSW .