Hi, That means we can install and run two program on different JVM at a time on same computer only I have to give full path of each JVM during running of my class file in set path variable.Am I right ? Thanks & Regards Bikash
That means we can install and run two program on different JVM at a time on same computer
Yes. For example, on my computer i invoke either: c:\jdk1.3.1_07\bin\java c:\j2sdk1.4.2_01\bin\java
only I have to give full path of each JVM during running of my class file
So far so good: c:\jdk1.3.1_07\bin\java myClassFile c:\j2sdk1.4.2_01\bin\java myClassFile
in set path variable.
You lost me. If you need to set up unique classpaths for the different VM's, you'd best do it inside a batch file or shell script or by making a shortcut which specifies the classpath on the command line via the -cp argument.
I'm not sure if this is what you were originally asking, but it's also possible to have two or more JVM processes which use the same JVM files (same installation). Every time you type "java [classname]" you create a new JVM process using whatever JVM installation is found first in your PATH. So in this sense, it's easy to get two JVMs without needing to install two differrnt JVM versions. I don't know if that's what you really need here, but didn't want you to overlook the simpler solution if it's sufficient for you.