Dear developers,
I'm trying to execute an external application (pipeline-lite.exe)
inside a Java Uno Extension.
OpenOffice.org crash without any additionnals informations.
Do I need to make my runtime.exec() in another Thread ?
try {
Runtime runtime = Runtime.getRuntime();
Process pipelineProcess;
String EXEC_PATH = "C:\\Documents and
Settings\\vince\\Bureau\\ftp.daisy.org\\pipeline-lite-ms-20090312\\pipeline-lite.exe";
System.out.println("pipeline path:" + EXEC_PATH);
System.out.println("Can execute pipeline ?:" + new
File(EXEC_PATH).canExecute());
pipelineProcess = runtime.exec(EXEC_PATH);
System.out.println("Wait for ...");
int code = pipelineProcess.waitFor();
System.out.println("code: " + code);
System.out.println("exit val: " + pipelineProcess.exitValue());
System.out.println("errors:" + pipelineProcess.getErrorStream());
System.out.println("outputs:" + pipelineProcess.getOutputStream());
} catch (Exception ex) {
Logger.getLogger(UnoGUI.class.getName()).log(Level.SEVERE,
null, ex);
}
Regards,
------------------------------------------------------------------
- Vincent Spiewak - odt2dtbook.sourceforge.net -
------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]