I'm trying to compile Tomcat 5.0.28 from source using Sun's new JDK 1.5. I am using 
Ant 1.6.2 (which I built from source against the 1.5 JDK). I successfully get through 
grabbing all of the dependant libraries that I need. Once the build script gets to the 
"build-main" target, I get an error which states "javac: target release 1.1 conflicts 
with default source release 1.5".
 
Can Tomcat be built against the 1.5 JDK? Also, does this error indicate that Tomcat is 
being built using the 1.1 JDK target, thus skipping optimizations introduced in the 
1.2  - 1.5 JDKs? Or, is this a library that was built using 1.1, and is conflicting 
with 1.5?
 
Here's more of the ANT error output:
 
build-main:
     [echo] ----- Java-utils -----
     [echo] -- puretls.present = ${puretls.present}
     [echo] -- jsse.present = true /usr/share/java/jsse-1.0.3/lib/jsse.jar
     [echo] -- commons-logging = true
     [echo] -- jmx = true /usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar
     [echo] -- modeler = true /usr/share/java/commons-modeler-1.1/commons-modeler.jar
     [echo] -- JDK14 = true
    [javac] Compiling 63 source files to 
/usr/local/src/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/classes
    [javac] javac: target release 1.1 conflicts with default source release 1.5
 
BUILD FAILED
/usr/local/src/jakarta-tomcat-5.0.28-src/build.xml:50: The following error occurred 
while executing this line:
/usr/local/src/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:445: The following 
error occurred while executing this line:
/usr/local/src/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:170: The following 
error occurred while executing this line:
/usr/local/src/jakarta-tomcat-5.0.28-src/jakarta-tomcat-connectors/util/build.xml:67: 
Compile failed; see the compiler error output for details.
 
It says to check the copuiler error output for details - but I don't know where that 
is...
 
 
 
Much thanks for looking at this and setting me in the right direction!!!!
 
Joe Krause

Reply via email to