Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Running 2 JVMs on a single machine

  Asked By: Manju    Date: Oct 17    Category: Java    Views: 738

Can anybody tell if we can run two JVMs on a single
machine. If yes, can we access the variable x defined
in JVM1 from JVM2. Would really appreciate if someone
could provide some links/articles on this topic.



1 Answer Found

Answer #1    Answered By: Calais Bernard     Answered On: Oct 17

Yes you can run  2 JVMs. There is no built in way to communicate between the two
though. The easiest way is probably through a shared file or through TCP/IP
sockets. The second way has the added benefit that the code could then be made
to communicate with VMs on other machines.

Didn't find what you were looking for? Find more on Running 2 JVMs on a single machine Or get search suggestion and latest updates.