ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javadoc.java
Date Tue, 17 Jul 2001 14:07:22 GMT
A word of warning. The Windows JDK installers typically throw a java.exe in
the winnt\system32 directory. When you run that java it will end up with
java.home pointing to some other JRE directory (i.e. not the one under the
JDK install). The relative path will not find you a javadoc :-(.

The solution is to probably document the folly of Sun's installers. Working
around it is rather hard.

Conor

----- Original Message -----
From: "Glenn McAllister" <glenn@somanetworks.com>
To: <ant-dev@jakarta.apache.org>
Sent: Tuesday, July 17, 2001 11:53 PM
Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs
Javadoc.java


> Nico Seessle wrote:
>
> > ----- Original Message -----
> > From: "Herman, Dave" <dherman@intrado.com>
> > To: <ant-dev@jakarta.apache.org>
> > Sent: Monday, July 16, 2001 6:35 PM
> > Subject: RE: cvs commit:
jakarta-ant/src/main/org/apache/tools/ant/taskdefs
> > Javadoc.java
> >
> > > Is that the right path? I thought the JAVA_HOME variable was supposed
to
> > be
> > > the root directory of the JDK, so the path would be
java.home/bin/javadoc?
> > >
>
> As Nico has so eloquantly demonstrated ( :-] ), the java.home System
property
> points to the JRE home dir, not the JDK.
>
> >
> >
> > C:\temp>type build.xml
> > <?xml version="1.0"?>
> > <project default="main" basedir=".">
> >   <target name="main">
> >     <echo message="${java.home}"/>
> >   </target>
> > </project>
> >
> > C:\temp>set JAVA
> > JAVA_HOME=C:\jdk14
> >
> > C:\temp>ant.bat
> > Buildfile: build.xml
> >
> > main:
> >      [echo] C:\jdk14\jre
> >
> > BUILD SUCCESSFUL
> >
> > Total time: 1 second
> > C:\temp>
> >
> > Nico
>
> Glenn McAllister
>
>


Mime
View raw message