Results 1 to 2 of 2

Thread: URGENT!!! Exception : CreateProcess : error=0

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    75

    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]

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width