Hello
1)
I am trying to run build.sh to build in dir /jakarta-tomcat and got the
following error message:
init:
prepare:
[mkdir] Created dir: /work2/build/tomcat
[mkdir] Created dir: /work2/build/tomcat/classes
[mkdir] Created dir: /work2/build/tomcat/conf
[mkdir] Created dir: /work2/build/tomcat/src
[mkdir] Created dir: /work2/build/tomcat/lib
[mkdir] Created dir: /work2/build/tomcat/logs
[mkdir] Created dir: /work2/build/tomcat/bin
[mkdir] Created dir: /work2/build/tomcat/doc
[mkdir] Created dir: /work2/build/tomcat/webapps
[copydir] Copying 9 files to /work2/build/tomcat/bin
[copydir] Copying 14 files to /work2/build/tomcat/conf
[copydir] Copying 25 files to /work2/build/tomcat/doc
[mkdir] Created dir: /work2/build/tomcat/lib/test
[mkdir] Created dir: /work2/build/tomcat/lib/test/Golden
[copydir] Copying 34 files to /work2/build/tomcat/lib/test/Golden
[copydir] Copying 5 files to /work2/build/tomcat/bin
tomcat:
[javac] Compiling 260 source files to /work2/build/tomcat/classes
BUILD FAILED
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:717)
at org.apache.tools.ant.Project.executeTarget(Compiled Code)
at org.apache.tools.ant.Project.executeTargets(Compiled Code)
at org.apache.tools.ant.Main.runBuild(Compiled Code)
at org.apache.tools.ant.Main.main(Main.java:107)
Total time: 3 seconds
Did anyone come across the problem?
Here is my environment:
Classpath: setenv CLASSPATH "/work2/Solaris_JDK_1_2_1_03/lib"
Platform : solaris
JDK version: Solaris SPARC JDK and JRE 1.2.1_03
The jakrata-tomcast is the latest from the "Sources" link on the Jakarta
page , version 3.1.
2)
Also, in the build.sh for /jakarta-tomcat, there is this line:
cp=../jakarta-ant/lib/ant.jar:../jakarta-tools/moo.jar:../jakarta-ant/lib/xml.j
ar:../build/tomcat/classes:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dev.jar
There is no dev.jar file but a dt.jar in my $JAVA_HOME/lib/dev.jar. (in addition
to a tools.jar) What is this dev.jar? My JDK version is 1.2.1_03.
Any help appreciated. Thanks.
Al
|