Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Application is terminated when log off from the server

863708Aug 2 2011 — edited Oct 19 2011
I run my application on windows on server like this:
"C:\Program Files\Java\jre6\bin\javaw.exe" -jar C:\myJarFile.jar

When I log off from the server the application is terminated (so only if I'm logged in the application will run).
How can I insure my application will always run regardless who is logged in to server?

Edited by: user10511764 on Aug 2, 2011 5:14 AM

Edited by: user10511764 on Aug 2, 2011 11:01 PM

Comments

angelr
Hi
You can create a service to start the application, thus, the java app is always running even if no user is logged

use the Java Service Wrapper (google search)
You can also use the sc.exe to create the service
don't forget to check in window services if autostartup once created
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 16 2011
Added on Aug 2 2011
1 comment
1,215 views