running C++ application from Runtime.exec
Hello everybodyI am trying to run a c++ executable file(myap.exe) using Runtime.getruntime().exec("myap"), nothing happend!.Can anyone help me please.
[178 byte] By [
waellena] at [2007-9-26 3:30:11]

Where is located the file 'myapp.exe' ?
If not in directory that is in 'PATH' varable, you need to use :
Runtime.exec(String command, String[] envp, File dir)
Executes the specified string command in a separate process with the specified environment and working directory.
Floweb
floweb at 2007-6-29 11:55:31 >

HiThe file 'myapp.exe' is located within the same directory as the visual j++. when I try to execute notepad.exe or calc.exe, it works, but not for my own applicaton(c++ ot j++ application).Need help