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 .