Hi,
i am trying to call a native application from a servlet application
(specifically an webservice based on axis 1.3) with the following code:
Process p = Runtime.getRuntime().exec(args);
StreamReader isr = new StreamReader(p.getInputStream()); //
just uses separate thread to read from the process
StreamReader esr = new StreamReader(p.getErrorStream()); //
just uses separate thread to read from the process
try {
p.waitFor();
} catch (InterruptedException e) {}
Result r = new Result(isr.getResult(), esr.getResult());
the problem is that the application which is called with the exec
command, a realbasic app which uses OLE to print out documents with
PowerPoint does not work if this code is called inside the tomcat
JVM. If i copy paste the code to a simple class, compile the class
and use the same arguments for the exec, everything works fine.
I am quite new to windows, just have a lot of UNIX experience and i
am lost here.
regards, David
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]