javawindows-services

Run Java application as Windows service (using JSL) - get error when installing


Get a problem when installing Java application as service in Windows environment (Win 7). Using 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 administrator but Java application not installed as service (not shows up in the service.msc). Any help?


Solution

  • 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).

    Adjust User Account Control settings.