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.