You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Marcelo J. Iturbe" <ma...@msm.cl> on 2000/04/05 20:00:26 UTC

./build.sh woes...

Hello,
I have regular Apache running with MySQL and PHP3.
I am trying to build Tomcat in order to add servlet capabilities to the server.
So, I am trying to build Tomcat. However when I run ./build.sh I get the 
following:

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tools/ant/Main

I placed a few echoes in the build.sh file to see what happens
echo "javacmd=$JAVACMD: cp=$cp: classpath=$CLASSPATH"
echo "$JAVACMD -classpath $cp:$CLASSPATH org.apache.tools.ant.Main \"$@\""

The result is:

javacmd=/usr/local/jdk1.2.2/bin/java: 
cp=../jakarta-ant/lib/ant.jar:../jakarta-tools/moo.jar:../jakarta-ant/lib/xm 
l.jar:../build/tomcat/classes:/usr/local/jdk1.2.2/lib/tools.jar: classpath=

/usr/local/jdk1.2.2/bin/java -classpath 
../jakarta-ant/lib/ant.jar:../jakarta-tools/moo.jar:../jakarta-ant/lib/xml.j 
ar:../build/tomcat/classes:/usr/local/jdk1.2.2/lib/tools.jar: 
org.apache.tools.ant.Main ""

java -version
java version "1.2.2"
Classic VM (build Linux_JDK_1.2.2_RC4, native threads, sunwjit)

Any help would be apreciated..

Thanks,
Marcelo


***********************************************
                  ICQ 22921676
                  MSM Interactive.
      El Bosque Norte 0134, Las Condes, Chile.
Phone: (56-2) 333-1535  Fax: (56-2) 233-8912
Email: marcelo@msm.cl    http://www.msm.cl
*******************************************


Re: ./build.sh woes...

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Did you follow the directions in the README file and download the jakarta-ant
project to a parallel directory?  In other words, if you have Tomcat's source
distribution in:

    /home/mydir/jakarta-tomcat

then you also need to download Ant's source distribution into:

    /home/mydir/jakarta-ant

and go build Ant before you build Tomcat:

    cd /home/mydir/jakarta-ant
    ./bootstrap.sh

For users who only care about installing Tomcat (instead of modifying it), binary
distributions are also available.

Craig McClanahan


"Marcelo J. Iturbe" wrote:

> Hello,
> I have regular Apache running with MySQL and PHP3.
> I am trying to build Tomcat in order to add servlet capabilities to the server.
> So, I am trying to build Tomcat. However when I run ./build.sh I get the
> following:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tools/ant/Main
>
> I placed a few echoes in the build.sh file to see what happens
> echo "javacmd=$JAVACMD: cp=$cp: classpath=$CLASSPATH"
> echo "$JAVACMD -classpath $cp:$CLASSPATH org.apache.tools.ant.Main \"$@\""
>
> The result is:
>
> javacmd=/usr/local/jdk1.2.2/bin/java:
> cp=../jakarta-ant/lib/ant.jar:../jakarta-tools/moo.jar:../jakarta-ant/lib/xm
> l.jar:../build/tomcat/classes:/usr/local/jdk1.2.2/lib/tools.jar: classpath=
>
> /usr/local/jdk1.2.2/bin/java -classpath
> ../jakarta-ant/lib/ant.jar:../jakarta-tools/moo.jar:../jakarta-ant/lib/xml.j
> ar:../build/tomcat/classes:/usr/local/jdk1.2.2/lib/tools.jar:
> org.apache.tools.ant.Main ""
>
> java -version
> java version "1.2.2"
> Classic VM (build Linux_JDK_1.2.2_RC4, native threads, sunwjit)
>
> Any help would be apreciated..
>
> Thanks,
> Marcelo
>
> ***********************************************
>                   ICQ 22921676
>                   MSM Interactive.
>       El Bosque Norte 0134, Las Condes, Chile.
> Phone: (56-2) 333-1535  Fax: (56-2) 233-8912
> Email: marcelo@msm.cl    http://www.msm.cl
> *******************************************
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org