In case of running exe using servlet, the code for running notepad.exe is working but the code for running my own exe is not working. what is the cause?
And how to run exe in client side using applet, please suggest me something.[
but the code for running my own exe is not working.
Since notepad uses a window and does not use std out or std err, it does not hit this problem.
parampreet sethi wrote:Does it mean that any program which uses a window (basically window application) can be run on client side through servlet?
I would bet that your exe makes use of std out and/or std err output streams. Read the article Wouter pointed to.
Whoops I just reread the thread and see the .exe is a C program but the same question applies. The C runtime will write to std err if it gets an error - for example what happens if the file is not found?
With respect eh? Well us aged Java gurus can always use a little respect.