I have written a Java program which call a 'C' program. The code is similar to :
Runtime r = Runtime.getRuntime();
Process p = r.exec("cprogram.exe");
int exit_code =p.waitFor();
This Java program runs successfully sometimes, but most of the times an exeption is generated as :
IO Exception : CreateProcess : error=0

I have a 16-bit Turbo C++ compiler (for the C program) , JDK 1.3 on a Windows 98 machine.
I have even tried : r.exec("command.com /c start cprogram.exe")
But with same result.

I need help desperately. Please mail any solution to [email protected]