Create Process returns error=3 when it can't find the exe you are trying to
run (and possibly one of the dll's, but I'm not sure about this).  I've
found it always best to put the complete path to the executable when trying
to ue exec.  

        Randy

-----Original Message-----
From: Choo Yew Beng [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 4:15 AM
To: [EMAIL PROTECTED]
Subject: Output Without Tomcat and Output With Tomcat


Hi Gurus from The Apache Jarkata Tomcat Group,
I had the following question:
1) We had developed couple of graphical programs in C and had compile it
into
executable codes.
    When executed using [without Tomcat i..e on the jre environment]:
        Runtime runtime = Runtime.getRuntime();
        String[] arg = { "X.exe", param };
        param = inpath infile outpath outfilea outfileb outfilec
    Note: outpath and inpath are all as followed before passing into the
.exe
       "e:\\program files\\data\\xx\\022001", "e:\\program
files\\data\\out\\022001"
    it run fine and output the requested graphical result.

   However, when the above mentioned java program is executed using Tomcat,
   the following errors were obtained:
      java.io.IOException: CreateProcess:
         X.exe "e:\\program files\\data\\xx\\ infile e:\\program
files\\data\\out\\ outfilea outfileb outfilec" error=3
Can some gurus out there comment and advice on the above mentioned?

Thx n look forward to some favorable replies if any.
Choo Yew Beng


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to