|
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 |
- Re: build script is unable to find lang object? Mark Koscak
- Re: build script is unable to find lang object? Steve Weiss
- Re: build script is unable to find lang object? Mark Koscak
