GeeCON Prague 2014*
The moose likes Java in General and the fly likes How to call a java prog. from another one Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "How to call a java prog. from another one " Watch "How to call a java prog. from another one " New topic
Author

How to call a java prog. from another one

Jolly Ag
Greenhorn

Joined: Oct 30, 2002
Posts: 22
Hi Friends
I need to call a java program from another java program ...can u friends please tell me how i can do it .
Tx.
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
java.lang.Runtime.exec()
You can use this to call external programs, or pretty much do anything you would do from the command line. So to start a new Java program, you could call "java -classpath... mypackage.MyClass"

--Mark
 
GeeCON Prague 2014
 
subject: How to call a java prog. from another one