title: Unable to run c/c++ exe from eclipse RCP
body: <p>I am trying to run my <code>c/c++ .exe</code> from eclipse <code>RCP</code> (Java API).</p>
  
  <p>Code:</p>
  
  <pre><code>package com.jkt.rcp.texteditor.handlers;
  
  import java.io.IOException;
  
  import org.eclipse.core.commands.AbstractHandler;
  import org.eclipse.core.commands.ExecutionEvent;
  import org.eclipse.core.commands.ExecutionException;
  
  //import com.jkt.runner.utils.Test;
  
  public class RecordHandler extends AbstractHandler {
  
      private RecordingThread recordingThread;
      @Override
      public Object execute(ExecutionEvent event) throws ExecutionException {
          System.out.println("inside RecordHandler...");
  
          recordingThread = new RecordingThread();
  
          recordingThread.start();
  
          return null;
      }
  
  
  
  }
  </code></pre>
  
  <p>And code of <code>RecordingThread.java</code> is:</p>
  
  <pre><code>package com.jkt.rcp.texteditor.handlers;
  
  import java.io.IOException;
  
  
  public class RecordingThread extends Thread {
      private String file = "C:\\workspace\\JProAcceptanceBot\\Record.exe";
  
      public void run() {
          System.out.println("inside Run()...");
  
          try {
          Process proc = Runtime.getRuntime().exec(file);
  
  
          } catch (IOException e) {
              System.out.println("IOException:"+e);
              e.printStackTrace();
          }
  
      }
  }
  </code></pre>
  
  <p>Actually <code>RecordHandler.java</code> executes after clicking a eclipse <code>RCP</code> button.<br>
  But as soon as I click button, <code>c/c++ exe</code> doesn't respond and my Java program stops responding.<br>
  Otherwise if I run this <code>exe</code> inside my eclipse, it runs fine.</p>
  
  <p>This <code>c/c++ exe</code> has been made by using Eclipse CDT and Cygwin.</p>
  
  <p>Please have a look into code and suggest ?</p>