Tuesday, April 22, 2003 01:39 PM
The error code in CreateProcess() means that the String passed in exec() was not succesfully mapped to a system command or an executable. This generally happens when we miss out the correct path to executables etc.
For ex, a Runtime.exec("test.exe") will throw this error code if test.exe lies in some other directory and is not there in JVM's PATH.
In your case you have asked ant fork(), so a new JVM is loaded. Probably it is not getting the same PATH as the original one. You could try passing PATH to the new JVM as well and see if the error still comes. This can be done using .
Let me know if it works.
Btw, for compiling ejb, why dont you use the ejbc task in ant ?