ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <>
Subject Re: ${java.home} - why is it pointing at the JRE?
Date Tue, 09 Jan 2001 19:23:40 GMT
----- Original Message -----
From: "Bill Burton" <>
To: <>
Sent: Tuesday, January 09, 2001 11:12 AM
Subject: Re: ${java.home} - why is it pointing at the JRE?

> 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

View raw message