S
santoshjoshi2003
hi can there be two JVM in a single machine if yes please provide me
the details
the details
hi can there be two JVM in a single machine
Yes.
if yes please provide me
the details
Nigel said:What details do you want?
Each invocation of java creates a new JVM in a completely independent process.
Not entirely true. JVMs share memory space, so the same class versions
and static variables stay constant throughout the computer.
And, in case OP means two JRE or SDK installations,
also yes.
Not entirely true. JVMs share memory space, so the same class versions
and static variables stay constant throughout the computer.
Only since Sun Java 1.5, and only for system classes
[<http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html>]
unless Sun changed this for Java 1.6
Joshua said:Not entirely true. JVMs share memory space, so the same class versions
and static variables stay constant throughout the computer.
ck said:set a system variable called JAVA_HOME to point to your jdk folder
(which contains the bin folder)
add %JAVA_HOME%\bin to PATH
If you have JDK 1.4 in (lets presume) c:\java\jdk1.4
and JDK 1.5 in d:\java\jdk1.5
To test JDK 1.4 set JAVA_HOME= c:\java\jdk1.4
and to test JDK 1.5 set JAVA_HOME=c:\java\jdk1.5
It is not necessary to install either of JDK (1.4 or 1.5)
You can copy the jdk folder from any other place where these jdk are
installed
If you are going to test it in command prompt, make sure that you open
a new command prompt after each change
Or you can set it using set command in the command prompt.
Joshua said:Not entirely true. JVMs share memory space, so the same class versions
and static variables stay constant throughout the computer.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.