How to get return code from Java program execution in Ecliipse

iluomo227 used Ask the Experts™
Hi all,

In Windows, using Eclipse to run standard Java programs, how can we get the return code from a program execution?

I've googled but have only been able to find pages about Eclipse errors.


Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
When the program is terminated, you can go to debug perspective, it
shows the exit code as tree node of the program, like this

<terminated>A [Java Application]      
      <terminated, exit value: 23>/opt/local/share/java/openjdk6/bin/java
(May 17, 2011 9:40:16 PM)      

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial