Forum Stats

  • 3,872,132 Users
  • 2,266,392 Discussions
  • 7,911,057 Comments

Discussions

Application is terminated when log off from the server

863708
863708 Member Posts: 25
edited Oct 19, 2011 1:11PM in Java Desktop Applications
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

Answers

  • angelr
    angelr Member Posts: 24
    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
This discussion has been closed.