On Wed, 04 Jan 2006, Elena S. Peterson <[EMAIL PROTECTED]> wrote:

> So I checked to see what the value of java.home is and that's the
> part that's confusing me.  Before any of the targets run it points
> to my jdk (which is what the JAVA_HOME environment variable points
> to).  However as soon as any target is called it points to a jre.

The java.home system property and the JAVA_HOME environment variable
are two different things.  java.home always points to the JRE and Ant
knows that, JAVA_HOME is evaluated by the Ant wrapper script.

Since you are using Eclipse instead of the wrapper script, JAVA_HOME
may be ignored (I'm not familiar enough with the Ant Eclipse
integration to know) and the error message is a bit misleading.

The code that emits the error message tries to locate tools.jar
relative to the java.home system property using the well known layout
of the JDK.

> Java is in my path (in the windows directory) but javac is not.

The problem is your parentesis.  If java.home points to the Windows
directory you are outside of the JDK directory and any assumptions on
the file system layout are wrong.

Make sure that Eclipse is run by the java executable located in your
%JAVA_HOME%/jre/bin directory instead of the one in the Windows
directory.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to