This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to call a java prog. from another one