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 26686 invoked from network); 5 Dec 2000 21:22:50 -0000 Received: from entoo.connect.com.au (192.189.54.8) by locus.apache.org with SMTP; 5 Dec 2000 21:22:50 -0000 Received: from host (unknown [203.0.27.252]) by entoo.connect.com.au (Postfix) with SMTP id 9EFC9DD4EA for ; Wed, 6 Dec 2000 08:21:33 +1100 (EST) Message-ID: <001b01c05f05$3f848ae0$1232177d@pb.patrick.com.au> From: "Mark Koscak" To: References: <001501c05e83$ada6f260$1232177d@pb.patrick.com.au> <3A2D163F.3000505@bonampak.org> Subject: Re: build script is unable to find lang object? Date: Wed, 6 Dec 2000 08:49:25 +1100 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.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi Steve, Thanks for the reply. Yes, unfortunately :(, I think I'm going to go down the path of a different jdk and complete reinstall of Tomcat. It's the only thing I can think of as to why a previous installation (on my other machine) would work and the current one does not. Cheers Mark ----- Original Message ----- From: Steve Weiss To: Sent: Wednesday, December 06, 2000 3:22 AM Subject: Re: build script is unable to find lang object? > Do you have $JAVA_HOME/lib/tools.jar in your classpath somewhere? > > -S > > Mark Koscak wrote: > > > Hi everyone, > > > > Following on from my earlier discussion. I have installed Tomcat3.2 and > > am running jdk1.3. I can run the example Servlets and JSP's provided. > > > > With thanks to Setve Weiss, I have managed to compile my individual java > > class Hello.java provided as a part of the sample application. > > > > However now when I attempt to use the build script I get the following > > error message. (The build.xml script has been modified for the current > > project). I read once that Tomcat does not work well with jdk1.3 could > > this be my problem? > > > > > > > > [root@netdev vesselenq]# ./build > > > > Couldn't find or load essential class `java/lang/Object' > > java.lang.NoClassDefFou > > > > ndError java/lang/Object > > > > ./btest: line 13: 4828 Aborted (core dumped) java -classpath $C > > > > P:$CLASSPATH org.apache.tools.ant.Main \ -Dtomcat.home=$TOMCAT_HOME "$@" > > > > Here are some of my settings... > > > > I have set the CLASSPATH to include > > > > /usr/local/jdk1.3 > > > > /usr/local/jakarta-tomcat/src > > > > /usr/local/jakarta-tomcat/lib/servlet.jar > > > > /usr/local/jdk1.3/lib > > > > /usr/local/jdk1.3/lib/tools.jar > > > > The build script... > > > > #!/bin/sh > > > > # Identify the custom class path components we need > > > > CP=$TOMCAT_HOME/classes:$TOMCAT_HOME/lib/ant.jar:$TOMCAT_HOME/lib/xml.jar > > > > CP=$CP:$TOMCAT_HOME/lib/jasper.jar:$TOMCAT_HOME/lib/servlet.jar > > > > CP=$CP:$TOMCAT_HOME/lib/webserver.jar > > > > # Execute ANT to perform the requested build target > > > > java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \ > > -Dtomcat.home=$TOMCAT > > > > _HOME "$@" > > > > #java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main > > > > If you need any more information on any other system settings, let me > > know and I shall provide the information. > > > > Many thanks > > > > Mark > > > -- > "If you watch TV news, you know less about the world than if > you just drank gin straight from the bottle." - Garrison Keillor