A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Launch Multiple JVM From Within A Java Process
Joined: Nov 17, 2004
Dec 30, 2010 06:05:23
my application, which consits of 1 master and 2 worker, with
My question - What is the right way to pro programmatically launch another JVMs (on a single machine ) to simulate several servers running simultaneously?
Most of webpage I searched on the internet tells using Runtime.exec(). Is it recommended using this method? Or any other suggestion?
I appreciate any commentary.
Joined: Jun 01, 2010
Dec 30, 2010 06:32:25
Here's required reading when using
. I see that it's 10 years and one day old today :-)
Joined: Oct 27, 2005
Dec 30, 2010 06:56:44
And still very relevant.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Joined: Oct 13, 2005
Dec 31, 2010 01:52:15
It's a little easier if you use the ProcessBuilder class, but otherwise Daconta's comments still apply unchanged.
I agree. Here's the link:
subject: Launch Multiple JVM From Within A Java Process
Swing in Opera browser
Calling Java from Java
Webstart to use jre 1.4
launching images with a specified application from java on a MAC
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014