aspose file tools*
The moose likes Beginning Java and the fly likes JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JVM" Watch "JVM" New topic
Author

JVM

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1378
Is it possible to have more than one JVM on the same machine?
Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
Yes, it is possible. Just install jdk in different folders and you have
multiple jvm's running on your machine. Provided, watch out and set
the environment variables properly.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Exactly right, but they're not "running" until you start em. I have several on my machine, and I often start Java programs with a batch file that sets the path and classpath to the exact JVM I want. My main work project must be on 1.3.x and my pet projects require 5.0.

You can get confusing problems when you run the install routines for different JREs. They may clobber each other in the registry and overlay each other's settings for applets in IE. I can't say just why I DONT have such problems, but holler here if you do and somebody will try to help.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JVM