Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call another program in java?

Status
Not open for further replies.

Outy

Programmer
Feb 7, 2001
16
BE
Hi,

I have to write an application that gets a message, looks at the first 4 characters of the msg(string). Then my application has to look into a file which other application should be started regarding the 4 ch.
So is there a function in java that can call another application?

Thx

Outliner
 
See the java.lang.Runtime class. For example:
Runtime.getRuntime().exec("app_to_start");

Bye, Otto.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top