J
joshivaibhav
Hello,
I am new to Java and here is my question:
How to launch another Java program from within a Java program?
I have tried using Runtime.getRuntime() and it works for launching
applications.
But if I need to launch another java program do I have to use:
"Java <another Java program name>" => This string as an input to exec()
method to run another Java program?
Both the programs will run on the same machine. Can these program share
the same JVM and run in the same process?
I want to avoid using RMI.
Please advice.
Thanks,
Vaibhav
I am new to Java and here is my question:
How to launch another Java program from within a Java program?
I have tried using Runtime.getRuntime() and it works for launching
applications.
But if I need to launch another java program do I have to use:
"Java <another Java program name>" => This string as an input to exec()
method to run another Java program?
Both the programs will run on the same machine. Can these program share
the same JVM and run in the same process?
I want to avoid using RMI.
Please advice.
Thanks,
Vaibhav