Running a Java process in Windows even after the user is logged out

前端 未结 5 625
醉话见心
醉话见心 2020-12-19 13:10

I have a batch file that starts a Java process in a Windows 2003 server. As per the security policy, the users of that machine are logged off forcefully, if the user is inac

5条回答
  •  [愿得一人]
    2020-12-19 13:45

    If you want it to run under Scheduled tasks you have to make sure you don't have "only run when user logged in" checked, which usually means you need to supply a password.

    A windows service would be the normal way to do this: the Java service wrapper is 3rd party but loads of people use it.

    If you really wanted to not use a 3rd party method you could use svrany.exe (http://support.microsoft.com/kb/137890) on WIndows NT or later, but it is not designed specifically for Java.

提交回复
热议问题