java.exe launched by SYSTEM/Windows Service got killed after user logoff
Posted on 2012-09-19
I want to run a java application at machine reboot and without interruption afterward.
A Windows service is written to start the java class. java class runs fine at reboot
without any user login. I can check from another machine over network. After user
(without admin privilege) login, Windows Task Manager shows the service and java.exe
under user name SYSTEM from Processes tab. At this point, the java class is still
up and running.
However, the java class got killed after the user without admin privilege logs off.
I can check from another machine through network if the java application is
running or not. Login again only see the Windows service (under user name SYSTEM)
launching the java class from Windows Task Manager. But java.exe (initially also
under user name SYSTEM) is gone.
How to let the java class continue to run without interruption? The OS is
XP Pro SP3. Java JRE version is 1.6.0_16.
Your opinion is very much appreciated.