Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Capture output and exit status a launched Java program
Capture output and exit status a launched Java program [message #498222] Sun, 15 November 2009 19:16
Thomas Mauch is currently offline Thomas Mauch
Messages: 29
Registered: July 2009
Junior 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

Previous Topic:disable copy/paste/rename of files with particular extension
Next Topic:Common Navigator - Label Provider
Goto Forum:
  


Current Time: Fri Jul 25 14:36:51 EDT 2014

Powered by FUDForum. Page generated in 0.01582 seconds