This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to call a java prog. from another one
 
Similar Threads
how to write to a another java std input stream.
launch msword from java
Does static has only one instance?
How to call a program from within a program?
Calling Java Program from Stored Procedure