Runtime.exec doesn't show text from exe
1 posts in topic
Flat View  Flat View

Posted By:   Will_Richardson
Posted On:   Thursday, June 27, 2002 01:09 PM

Hello, i'm trying to use Runtime.exec to start another application (exe). However, when i get the streams from the process class nothing comes through them.

i get an exit code of 0 so i know it ran fine but i don't seen any output. i've tried the following:

Process process = Runtime.getRuntime().exec("application.exe param1 param2");


Process process = Runtime.getRuntime().exec("cmd.exe /Capplication.exe param1 param2");

Any ideas? thank you.

Re: Runtime.exec doesn't show text from exe

Posted By:   Stephen_Ostermiller  
Posted On:   Monday, July 1, 2002 06:47 AM

Use the getInputStream() method of the process that is created and read from that. The text you are looking for will be there.
About | Sitemap | Contact