Hi Mehmet,

a few questions

* what is slowly versus faster in terms of your application?
* does your application create a lot of output on stdout?

Thanks in advance

Siegfried Goeschl

On 11.06.13 20:54, Mehmet Emin PAÇA wrote:
Hi, I am running an exe file using commons-exec 1.1 version.But there are
performance problems occuring.
I mean when I compared running performances using cmd.exe  vs running from
a java application(using commons-exec), the application which called in
common-exec  is working slowly. But the other application run from cmd.exe
is working faster.

What can be problem ?

Running exe file from my simple java application code is below:

             *CommandLine cmdlLine = CommandLine.parse("Application.exe");
             watchDog = new
ExecuteWatchdog(ExecuteWatchdog.INFINITE_TIMEOUT);
             DefaultExecuteResultHandler resultHandler = new
DefaultExecuteResultHandler();
             Executor executor = new DefaultExecutor();
             executor.setExitValue(0);
             executor.setWatchdog(watchDog);
             executor.execute(cmdlLine,resultHandler);*


Running from cmd.exe:

*            C:\Users\test.user > Application.exe *

Thanks,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to