vikas talwar a écrit :
> I need to call a command line application from my java application.
> For that I want to create terminal window within my application where I
> can show the output of the application I'll call.
Process p = Runtime.exec ("app.exe");
InputStream input = p.getInputStream ();
// this is data piped from the standard output stream of the process
// you can then fill your JTextArea etc.
vikas talwar - 25 May 2006 12:55 GMT
Thanks, it works.
But now i'm into bigger problem.
The application which i'm calling is too heavy (takes 1 hr to complete)
and produce lot of log.
Can I use threading between getInputStream and print_to_TextArea ???
If Yes, it is going to increase the execution time of my child
application.
Any suggestion !!