I want to invoke a jar file in my eclipse plug-in application, the code goes like
Process proc;
try {
proc = Runtime.getRuntime().exec("java -jar Bunch-3.5.jar");
proc.waitFor();
// Then retrive the process output
InputStream in = proc.getInputStream();
InputStream err = proc.getErrorStream();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
It can run in a normal java application, but not in the plug-in application. no error and it seems has been executed, but not response