Run java application as windows service (using jsl) - get error when installing

大憨熊 提交于 2020-01-05 09:10:05

问题


Get a problem when installing java application as service in windows environment(Win 7). use jsl http://jslwin.sourceforge.net/ to launch application

when installing with jsl -install

error message : OpenScManager failed - Access is denied. <0x5>

but application run when jsl -run , i already log in as administrate but java application not install as service (not shows up in the service.msc), any help?


回答1:


You probably need to use 'run-as-administrator'. Even if logged in as administrator programs will not run using the elevated privileges. This enhances the security(or reduces accidental damages)

http://windows.microsoft.com/en-US/windows7/products/features/user-account-control



来源:https://stackoverflow.com/questions/9732967/run-java-application-as-windows-service-using-jsl-get-error-when-installing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!