Can anybody tell if we can run two JVMs on a singlemachine. If yes, can we access the variable x definedin JVM1 from JVM2. Would really appreciate if someonecould provide some links/articles on this topic.
Yes you can run 2 JVMs. There is no built in way to communicate between the twothough. The easiest way is probably through a shared file or through TCP/IPsockets. The second way has the added benefit that the code could then be madeto communicate with VMs on other machines.