[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: eclipse 3.0 build I200311211210 ant compile problem

The JAVA_HOME message comes from the Apache Ant integration. It is not
correct for fixing the problem in Eclipse.
Basically you need to allow Ant to find a compiler.
One way is to ensure that a tools.jar is on your Ant runtime classpath
within Eclipse.
You can add it yourself (Window>Preferences>Ant>Runtime>Classpath) or you
can start Eclipse using the -vm argument to point to your favorite JDK
install and tools.jar will be added for your automatically.

HTH
Darins
BTW This question has been answered many, many times here. Please search at
first http://www.eclipse.org/search/search.cgi. Thanks.

"Gerry Reno" <grenoml@xxxxxxxxx> wrote in message
news:3FBEA11A.8090605@xxxxxxxxxxxx
> I downloaded integration build (3.0) I200311211210 and I'm trying to ant
> compile a project and it is giving me this error:
>
> BUILD FAILED:
> file:/home/greno/projects/workspace/jakarta-jetspeed/build/build.xml:610:
> Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
>
> And above it is shown this line:
>
>      [echo] java.home = /usr/java/j2sdk1.4.2/jre
>
> This is not my JAVA_HOME.  It is set in my environment to
> /usr/java/j2sdk1.4.2
>
> This was working properly in my previous eclipse version 2.1.
>
> I don't seem to be able to set java.home anywhere.
>