|
What Richard is
saying is correct. Each instance of "java <program>" starts new Java
Runtime and hence new Virtual Machine. These Runtimes each have separate
classloaders also. To simplify the matter, think of JVM as combination of
ClassLoader and Execution Engine (interpreter).
regards,
Vikas
why not go ahead with two different machines
having different versions of the jvm say 1.2 and 1.3
and check it out.
But still if u want to chk it out on the same m/c
u can give the path to the particular jvm's java executable and run the
repective programs.. like
prompt:>> jdk1.2\bin\java
<classsfile-server>
and
in another window
prompt:>> jdk1.3\bin\java
<classsfile-client>
This is a simulation of diff machines thats all.
hope this helps,
anoop
----- Original Message -----
Sent: Thursday, December 13, 2001 3:21
PM
Subject: Re: Multiple JVM
On a single machine, no matter how many command windows are
opened, the JVM used will be common to all of them. I am not sure what
ur saying is correct.
-----Original Message----- From: A mailing
list for discussion about Sun Microsystem's Java Servlet API Technology.
[mailto:[EMAIL PROTECTED]] On Behalf Of Richard Yee Sent:
Thursday, December 13, 2001 12:14 PM To: [EMAIL PROTECTED] Subject:
Re: Multiple JVM
Purav, To start multiple JVM's on a machine
is simple. Open two command (Windows) or terminal windows (Unix)
and run a java application in each one. You can start a RMI server
in one and a RMI client in the
other.
Regards,
Richard
At 09:27 AM 12/13/2001 +0530,
you wrote: >Hi Guys. >Sorry for the Off-Topic
Question. >How can you acheive running multiple JVM's on a single
machine. I was >reading this RMI book and one of the lines read " 2
objects on >different JVM's on single or different machine can
communicate thru >RMI" > >Please
Help > >Regards > >Purav
Parekh >
________________________________________________________________________ ___ To
unsubscribe, send email to [EMAIL PROTECTED] and include in
the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources:
http://java.sun.com/products/servlet/external-resources.html LISTSERV
Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________ To
unsubscribe, send email to [EMAIL PROTECTED] and include in
the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources:
http://java.sun.com/products/servlet/external-resources.html LISTSERV
Help: http://www.lsoft.com/manuals/user/user.html
|