Capture output and exit status a launched Java program [message #498222] |
Mon, 16 November 2009 00:16 |
Thomas Mauch Messages: 30 Registered: July 2009 |
Member |
|
|
Hi,
I would like to launch a Java programm using Eclipse, redirect its output to the Eclipse console and then - after it has finished running - detect its exit status und print it to the console as well.
I succeed in launching the Java program using the information provided in http://wiki.eclipse.org/FAQ_How_do_I_launch_a_Java_program%3 F, but I am not able to get the two other task done.
So how can I
- launch a Java program so its output gets written to the Eclipse console (as it happens if I run my Java programm in the IDE and check the allocate console option)?
- detect that my launched Java program has finished and detects its exit status?
Many thanks in advance,
Thomas
|
|
|
Powered by
FUDForum. Page generated in 0.02478 seconds