Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Two instances of JVM  RSS feed

 
swapnil dangore
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an advanced question. Moving...
 
Campbell Ritchie
Sheriff
Posts: 53734
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!