Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 42028 invoked from network); 11 Aug 2000 16:17:21 -0000 Received: from pc4.triactivetech.com (209.217.162.4) by locus.apache.org with SMTP; 11 Aug 2000 16:17:21 -0000 Received: from no.name.available by pc4.triactivetech.com via smtpd (for locus.apache.org [63.211.145.10]) with SMTP; 11 Aug 2000 16:10:04 UT Received: from raptor.triactive.com ([10.0.0.1]) by spaceghost.triactivetech.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id PS2ZT7QF; Fri, 11 Aug 2000 11:23:39 -0500 Message-ID: <013f01c003af$ac9fae40$9b00000a@peabody> From: "Thomas Lockney" To: Received: from cs2882-203.austin.rr.com ([24.28.82.203]) by raptor.triactive.com via smtpd (for spaceghost.triactive.com [10.0.0.12]) with SMTP; 11 Aug 2000 16:10:02 UT References: <8DC09D493A3ED4118DC300508BAC980719DC0B@gsrv2003.gist.com> Subject: Re: building ant Date: Fri, 11 Aug 2000 11:17:40 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N The problem is that it's not finding tools.jar under your JAVA_HOME. Check to make sure that jar exists under /usr/java1.2/lib first. The class sun.tools.javac.Main is actually a part of this jarfile. It is the underlying tool that ant actually uses to handle the compilation. -thomas ----- Original Message ----- From: "Morahg, Yoav" To: Sent: Thursday, August 10, 2000 3:30 PM Subject: building ant > Hi. > > I previously built tomcat 3.1 on Solaris, but I can't remember how I did it. > I'm trying to rebuild and am trying to follow the instructions for building. > TO begin with, I must have jakarta-ant parallel to my jakarta-tomcat > directory. I got Ant 1.1 from the jakarta site and am now trying to build > it. I executed the bootstrap.sh script successfully but when I try to > execute the build script > > (build.sh -Ddist.dir=myant dist) I get the following error: > > Exception in thread "main" java.lang.NoClassDefFoundError: > sun/tools/javac/Main > at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Compiled > Code) > at org.apache.tools.ant.taskdefs.Javac.execute(Compiled Code) > at org.apache.tools.ant.Target.execute(Compiled Code) > at org.apache.tools.ant.Project.runTarget(Project.java:675) > at org.apache.tools.ant.Project.executeTarget(Compiled Code) > at org.apache.tools.ant.Main.runBuild(Compiled Code) > at org.apache.tools.ant.Main.main(Compiled Code) > > my JAVA_HOME is set to /usr/java1.2 and I can't understand where it wants > the sun/tools/javac class from. > I have /usr/java1.2/bin and /usr/java1.2/lib in my PATH. > > What am I doing wrong? > > Thanks in advance, > -Yoav > > > --------------------------- > Yoav Morahg > Software Engineer > Gist Communications > (212) 965-1999 xt 122 > ymorahg@gist.com > >