¿how can i call an executable from a java program?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rodrigo_Ruiz
Posted On:   Tuesday, May 22, 2001 08:05 PM

How can i can call an executable (.exe) in windows from a java program.

Re: ¿how can i call an executable from a java program?

Posted By:   Rachna_Ringe  
Posted On:   Tuesday, May 22, 2001 09:10 PM

u can call an .exe from a java program thru exec() method of the Runtime class.
For example:

Runtime.getRuntime().exec ("winword "+aFile);

This command will open the MS Word and open aFile.doc in it. i.e. it will execute winword.exe.

Rachna
About | Sitemap | Contact