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
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