|
-
Jul 15th, 2002, 09:33 AM
#1
Thread Starter
Lively Member
URGENT!!! Exception : CreateProcess : error=0
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]
-
Jul 15th, 2002, 03:33 PM
#2
Dazed Member
Didn't you just post this? Try doing a stack trace.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|