Hello,
I'm trying to build Jetspeed from scratch running under RedHat Linux 6.1.
I have both the IBM JDK 1.1.8 and Sun JDK 1.2.2 installed on the system.
I'm not familiar with the Ant build tool and I think some of my problems
are related to this. The documentation is also a bit unclear on what your
classpath should be before doing the build, build/README states that you
need the servlet.jar file from Tomcat and all the files in the lib
directory in your classpath before doing the build. But build.sh sets the
classpath up with all the files in the lib directory, so I assume it is not
necessary to have them in your classpath as well.
Here is the error message I get when trying to build with jdk 1.2.2 :
Buildfile: build.xml
Detected Java Version: 1.2
Project base dir set to: /usr/local/src/jetspeed/build
Executing Target: core
Compiling 296 source files to /usr/local/src/jetspeed/bin/classes
Found 1 system error:
*** Error: Could not find package named:
/usr/local/src/jetspeed/bin/classes/java/lang,
/usr/local/src/jakarta-tomcat/lib/servlet.jar(java/lang),
/usr/local/jdk1.2.2/lib/tools.jar(java/lang),
/usr/local/src/jetspeed/lib/ecs.jar(java/lang),
/usr/local/src/jetspeed/lib/turbine-2.0.jar(java/lang),
/usr/local/src/jetspeed/lib/cocoon.jar(java/lang),
/usr/local/src/jetspeed/lib/cocoon-ext-servlet2.2.jar(java/lang)
,
/usr/local/src/jetspeed/lib/castor.jar(java/lang),
/usr/local/src/jetspeed/lib/village.jar(java/lang),
/usr/local/src/jetspeed/lib/xalan.jar(java/lang),
/usr/local/src/jetspeed/lib/xerces.jar(java/lang),
/usr/local/src/jetspeed/build/ant.jar(java/lang),
/usr/local/src/jetspeed/build/projectx-tr2.jar(java/lang) or
/usr/local/src/jetspeed/bin/src/java/lang
BUILD FATAL ERROR: Compile failed, messages should have been provided.
OK, since I didn't get that to work I thought switching to IBM jdk 1.1.8
could be a good idea. The first problem I ran into when trying to build
with 1.1.8, was the use of -classpath argument to java in build.sh. This
causes the system classes to be left out of the classpath. I changed the
script to set the environment variable CLASSPATH instead and got little
further along the road. But now it seems that the Ant tool requires you to
compile the classes using a Sun JDK. Is it possible to configure things to
use "javac" or "jikes" instead ?
IBM jdk118 :
Buildfile: build.xml
Detected Java Version: 1.1
java.lang.IncompatibleClassChangeError: Unimplemented interface method
at org.apache.tools.ant.SunParser.parse(Compiled Code)
at org.apache.tools.ant.ProjectHelper.configureProject(Compiled Code)
at org.apache.tools.ant.Main.runBuild(Compiled Code)
at org.apache.tools.ant.Main.main(Compiled Code)
I would appreciate any help to resolve the build problems I have. FYI, I
just built Turbine using 1.2.2 from the current CVS image without any
problems.
Also I think you should consider using the CLASSPATH environment variable
instead of the -classpath argument as that should be more portable. Here is
a cvs diff -c on the build.sh file if you want to change that :
cvs server: Diffing .
Index: build.sh
===================================================================
RCS file: /products/cvs/jetspeed/jetspeed/build/build.sh,v
retrieving revision 1.7
diff -c -r1.7 build.sh
*** build.sh 2000/04/07 16:51:22 1.7
--- build.sh 2000/04/27 11:03:14
***************
*** 34,41 ****
TARGET=dist
fi
!
CP=${CLASSPATH}:${JSDK}:${ECS}:${TURBINE}:${COCOON}:${CASTOR}:${VILLAGE}:${XALAN}:${XERCES}:ant.jar:projectx-tr2.jar
BUILDFILE=build.xml
! java -classpath ${CP} org.apache.tools.ant.Main -buildfile ${BUILDFILE} ${TARGET}
--- 34,43 ----
TARGET=dist
fi
!
CLASSPATH=${CLASSPATH}:${JSDK}:${ECS}:${TURBINE}:${COCOON}:${CASTOR}:${VILLAGE}:${XALAN}:${XERCES}:ant.jar:projectx-tr2.jar
+ export CLASSPATH
+
BUILDFILE=build.xml
! java org.apache.tools.ant.Main -buildfile ${BUILDFILE} ${TARGET}
Regards,
Gunnar
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]