Hello,

The java.exe installed as part of the JRE must be earlier in the PATH than
the SDK's java.exe.  I don't think this would be a problem as long as the
JRE and SDK are the same version.  The JAVA_HOME variable is used
primarily to determine the location of tools.jar utilized by the <javac>,
<jar> and a few other tasks.

However, if this is a problem, set the variable JAVACMD to point to the
java.exe in your SDK:
  set JAVA_HOME=...
  set JAVACMD=%JAVA_HOME%\bin\java.exe
which will cause ant.bat to use the java.exe under JAVA_HOME.

For Ant 1.3alpha in the CVS tree, setting JAVACMD is not necessary.

-Bill Burton

Reply via email to