File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Two instances of JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Two instances of JVM" Watch "Two instances of JVM" New topic
Author

Two instances of JVM

swapnil dangore
Ranch Hand

Joined: Jun 05, 2006
Posts: 46
Hi all,
Could anybody tell me , what does it mean
Running two instances of JVM on same machin
This statement , i read (I forgot the source) regarding Threads


Cheers<br />-------------<br />Swapnil<br /> <br />SCJP5-81%<br /> <br />"Dictionary is the only place where Success come before Work"
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not an advanced question. Moving...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40041
    
  28
It is quite easy.
Open Command Prompt, navigate to wherever you have your Java programs, run a program.
Open Command Prompt, navigate to wherever you have your Java programs, run a program.

If you can persuade your programs to keep running long enough (if you need keyboard input for example), you will have two JVMs running simultaneously.

More difficult. Each JVM opens a Socket (or the application on each JVM connects to a Socket), and the two applications send messages to each other.
 
 
subject: Two instances of JVM