On 8/7/06, Denis Cabasson <[EMAIL PROTECTED]> wrote:

Maven is juist checking that your JAVA_HOME is correctly set. It definitly
needs to know where JAVA is installed.

The bin/mvn script only uses JAVA_HOME to compose JAVACMD, which is
later invoked.    It doesn't use it to do anything else.  And the
script explicitly attempts to guess where JAVA_HOME is when it is not
set.

IMHO, there is no such thing as a "standard" location for Java....

I understand that.  But isn't the fact that the
/path/to/jdk1.5.0_12/bin directory is in the PATH enough?

Denis.


Weiqi Gao wrote:
>
> On 8/7/06, Vincent Siveton <[EMAIL PROTECTED]> wrote:
>> JAVA_HOME is a requirement
>> http://maven.apache.org/download.html#installation
>
> That piece of documentation seems to be wrong.  By reading the script,
> I certainly get the impression that the script is furiously trying to
> figure out where my JAVA_HOME is when the JAVA_HOME environment is not
> set.
>
> Right after the block of script I cited, there is another check for
> JAVA_HOME and it gives a warning if JAVA_HOME is not set.
>
> If Maven is going to require the setting of JAVA_HOME anyway, all that
> extra script are pointless.
>
> Of course I'm advocating that Maven not requiring me to set JAVA_HOME
> if I have installed my JDK in the "standard" location (such as
> C:\Program Files\Java\jdk1.5.0_12.).

--
Weiqi Gao (高为奇)
[EMAIL PROTECTED]
http://www.weiqigao.com/blog/

Reply via email to