Title: RE: can't <exec>

"error=2" means "The system cannot find the file specified."  I'm not sure, but I don't think Runtime.execute() uses the PATH environment variable to find executables (on Windows).  You need to specify the full path for execEx.

-----Original Message-----
From: Suu Quan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 2:06 PM
To: ANT user group
Subject: can't <exec>


Crying help to this forum

Trying out this simple task/target

<project default='init'>
  <target name='init'>
  <exec executable="execEx" dir="." />
  </target>
</project>

I get :
C:\exec-example:4: Execute failed: java.io.IOException: CreateProcess:
execEx error=2

execEx works perfectly outside of ant.

jakarta1.3.0_02, windows 2000

tia

Reply via email to