• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Keeping the virtual machine running when logged out of computer

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was wondering if there was a way to keep the virtual machine running in windows even when the person logs off of the machine. I would only like the virtual machine to die off once the system is shutdown.
Thanks
Shawn Diotte
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shawn,
If you start it in a System context it should run as long as the system is up. You can do that with a Registry entry. Start regedit with Start->Run and type regedit and OK. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run. Right click in the right pane and select New->String Value. Change the name of the key to something appropriate (like MyJVM). Now right click on the new value and select Modify. Under value data enter the command line to start your app like javaw -jar MyApp.jar. Reboot the machine, bring up a task manager and verify that the process is running. Logout and log back in and check to see if it is still running.
Hope this helps,
Michael Morris
[ March 10, 2003: Message edited by: Michael Morris ]
 
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic