db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Embretsen <John.Embret...@Sun.COM>
Subject Re: What java compiler does the build default to?
Date Thu, 22 Mar 2007 16:00:30 GMT
Andrew McIntyre wrote:
> On 3/16/07, John H. Embretsen <John.Embretsen@sun.com> 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


Mime
View raw message