title: Exit code of Java program running inside of the Eclipse IDE?
body: <p>I am developing a Java program using Eclipse that should exit with different codes based on the specific conditions.</p>
  
  <pre><code>if(veryBadError){
      Runtime.getRuntime().exit(10);
  }else if(notSoBadError){
      Runtime.getRuntime().exit(5)
  }else{
      Runtime.getRuntime().exit(0)
  }
  </code></pre>
  
  <p>Currently I manually run this program from command line and then check exit status, which is ridiculously slow. Is there a way to find out exit code without leaving Eclipse IDE?</p>
  
  <p>Thanks in advance for help!</p>