Andrew McIntyre wrote:
On 3/16/07, John H. Embretsen <[EMAIL PROTECTED]> wrote:
When I have my PATH set to JDK 1.5, and don't set JAVA_HOME, it reports
the path to the JDK 1.5 jre/ directory. However, when I set JAVA_HOME to
JDK 1.4, it reports the path to the JDK 1.4 jre/ directory instead. In
the latter case, which compiler is used, 1.5 or 1.4?
The compiler being used is the compiler for the JDK used to invoke
Ant. In the latter case mentioned here, it would be the 1.4 compiler.
I see. The script that comes with ant (for invoking ant) is using JAVA_HOME to
determine the java path, if JAVA_HOME is set and valid. I did not realize this
earlier. It all makes sense now...
Thank you,
--
John