tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Teran <>
Subject Windows, Runtime.exec() problems
Date Thu, 20 Oct 2005 17:01:00 GMT

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 {
         } 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:
For additional commands, e-mail:

View raw message