tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Sudell <asud...@Op.Net>
Subject Re: Problem building ant
Date Wed, 10 May 2000 19:39:04 GMT
"Didier BOLF"
> Env.:
> WIN NT4 SP4, JDK 1.2.2
> I succeed with bootstrap but I get :
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> when I try to build ant (build -Ddist.dir="d:\ant" dist

Bootstrap builds ant without using ant (by running javac),
but build runs ant, which invokes the compiler directly
by loading the class (  So it needs
to have the compiler in the classpath.

Set the environment variable JAVA_HOME to where your
JDK is installed.  Build.bat will put JAVA_HOME/lib/tools.jar
in your classpath (which is about what javac does as well).

    Drew Sudell

View raw message