A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
how to launch two JVM executing two java programs
Joined: Aug 29, 2006
Sep 19, 2006 22:35:00
I want to launch two different JVM, each one is executing a
program. Can any one suggest me how to do this
Joined: Oct 30, 2001
Sep 20, 2006 01:50:00
You just run "java" twice, with the appropriate arguments.
Or do you mean that you want two JVMs in the same process? If so, that's probably possible, but you would need to launch the JVMs using your own native code and the Java Invocation Interface.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Joined: Nov 29, 2005
Sep 20, 2006 03:15:00
The number of java processes you create is the number of JVM's running at that point of time.
Say I run a time consuming program from console like
then I open my eclipse and then I start my
instance.So at this point of time I have three jvm's running.one for each of the processes.
So if I investivage the current process running then I would find that there are two instances of java and one of javaw (used by eclipse).
Joined: Oct 14, 2005
Sep 20, 2006 13:38:00
I am guessing that Arun wants to run two different versions of Java (e.g. Java 1.4.2 and Java 5). This would be done by setting the PATH variable suitably, or by hard-coding the path to the java.exe file.
Joined: Oct 20, 2005
Sep 20, 2006 23:47:00
Can you give more inputs regarding your requirement?
I agree. Here's the link:
subject: how to launch two JVM executing two java programs
What does located in same JVM mean?
Two Applet Context = how Many JVM ?
JAVKE - Java Application Verification Kit for Enterprise - Install problem
What is difference between JDK, JRE and JVM?
How to check how much memory is used by a program??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014