發表文章

目前顯示的是 4月, 2012的文章

Keep scheduled java task running after user logoff

In the batch file for running the java program, you should specify the java start argument with -Xrs. For example: javaw -Xrs -jar  shceduled.jar Java intercepts user logoff events and stops execution. This is solved by adding   -Xrs   to the command line running the application, causing the JVM to ignore the logoff event.