I am trying to call another software from my java program. And the
source code is:
Runtime r = Runtime.getRuntime();
Process p = null;
try {
p = r.exec("racer.exe");
}catch (Exception e) {
System.out.print(e.getMessage());
}
The software "racer.exe" must run on MS-DOS environment and I compile
and execute my java program also in MS-DOS environment. Now the
problem is there is no error displayed when the program is complied
and executed. But actually the software "racer.exe" is not activated.
With the same piece of code, I tried to call other software running
on Windows environment and it works. I don't know what the problem.
Does it because the software and my program both runs on MS-Dos
environment? Could you please give me some ideas?