java - Tomcat External Executable Call -


i using application runs on tomcat 5 environment. application needs call external application (delphi executable). using following command line make call:

process pr = rt.exec(pattodelphiexe); pr.waitfor(); 

when start tomcat application, application delphi exe started well, however, when tomcat started service, delphi exe started attached tomcat service "as service".

i need delphi exe started application when call made through tomcat service.

i tried code below apache lib no success:

commandline cmdline = commandline.parse(pathtodelphiexe); defaultexecutor executor = new defaultexecutor(); defaultexecuteresulthandler resulthandler = new defaultexecuteresulthandler(); executor.setexitvalue(1); executor.execute(cmdline, resulthandler); 


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -