Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to run c/c++ exe from eclipse RCP
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload