db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew McIntyre" <mcintyr...@gmail.com>
Subject Re: What java compiler does the build default to?
Date Thu, 15 Mar 2007 17:17:02 GMT
On 3/15/07, Daniel John Debrunner <djd@apache.org> wrote:
>
> Does that mean that this section from Derby's BUILDING.txt is not required.
>
> ------------------
> (3) Create environment variable JAVA_HOME  to point to the
>      directory where you have installed JDK 1.4.x. For example:
>
>       setenv JAVA_HOME ${jdk14.dir} -- On unix(csh).
>       export JAVA_HOME=${jdk14.dir} -- On unix(ksh)
>       set JAVA_HOME=${jdk14.dir}    -- On Windows
> -------------------
>
> If it is required, what does it affect?

It is not an explicit requirement, although it makes sense in the
context of setting up a shell environment to invoke Ant, which appears
to be the intent of section 3.1. Depending on your OS, how/where the
JDK is installed on your machine, and the version of Ant you are
using, setting JAVA_HOME may not be required for the Ant scripts to
find your JDK.

The only affect of setting JAVA_HOME is to provide the location of a
known JDK. If the Ant scripts can't find one in a known location for
your OS, the scripts look in $JAVA_HOME/bin for a java executable. The
setting does not affect anything internally in the Derby build.

andrew

Mime
View raw message