← Back to team overview

openjdk team mailing list archive

[Bug 264808] Re: Package does not work with JDK 5

 

I just got bitten by the Tomcat6 being compiled for JDK 1.6, for someone
who is used to the standard distributions from http://tomcat.apache.org/
I lost quite a bit of time chasing down the reason.

It wasn't helped by the fact that in the file /etc/init.d/tomcat6 is the
line:

JDK_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun
/usr/lib/jvm/java-1.5.0-sun /usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.5-ibm"

which means that tomcat6 will attempt to use a 1.5 JDK if a 1.6 JDK
isn't installed.

Tomcat 6 runs fine on JDK 1.5 and it would be helpful if the packaged
version was compiled so that it would run against it.

-- 
Package does not work with JDK 5
https://bugs.launchpad.net/bugs/264808
You received this bug notification because you are a member of OpenJDK,
which is subscribed to java-access-bridge in ubuntu.

Status in “ant” source package in Ubuntu: Fix Released
Status in “antlr” source package in Ubuntu: Fix Released
Status in “commons-daemon” source package in Ubuntu: Fix Released
Status in “gjdoc” source package in Ubuntu: Won't Fix
Status in “java-access-bridge” source package in Ubuntu: Fix Released
Status in “javax-servletapi2.3” source package in Ubuntu: Fix Released
Status in “jsch” source package in Ubuntu: Fix Released
Status in “junit” source package in Ubuntu: Fix Released
Status in “libcommons-collections3-java” source package in Ubuntu: Fix Released
Status in “libcommons-net-java” source package in Ubuntu: Fix Released
Status in “libgnuinet-java” source package in Ubuntu: Fix Released
Status in “libgnujaf-java” source package in Ubuntu: Fix Released
Status in “libgnumail-java” source package in Ubuntu: Fix Released
Status in “libjaxp1.3-java” source package in Ubuntu: Fix Released
Status in “libjdepend-java” source package in Ubuntu: Fix Released
Status in “liboro-java” source package in Ubuntu: Fix Released
Status in “libreadline-java” source package in Ubuntu: Fix Released
Status in “libregexp-java” source package in Ubuntu: Fix Released
Status in “libservlet2.4-java” source package in Ubuntu: Fix Released
Status in “libxerces2-java” source package in Ubuntu: Fix Released
Status in “rhino” source package in Ubuntu: Fix Released
Status in “tomcat5.5” source package in Ubuntu: Fix Released
Status in “tomcat6” source package in Ubuntu: Won't Fix
Status in ant in Ubuntu Intrepid: Fix Released
Status in antlr in Ubuntu Intrepid: Fix Released
Status in commons-daemon in Ubuntu Intrepid: Fix Released
Status in gjdoc in Ubuntu Intrepid: Won't Fix
Status in java-access-bridge in Ubuntu Intrepid: Fix Released
Status in javax-servletapi2.3 in Ubuntu Intrepid: Fix Released
Status in jsch in Ubuntu Intrepid: Fix Released
Status in junit in Ubuntu Intrepid: Fix Released
Status in libcommons-collections3-java in Ubuntu Intrepid: Fix Released
Status in libcommons-net-java in Ubuntu Intrepid: Fix Released
Status in libgnuinet-java in Ubuntu Intrepid: Fix Released
Status in libgnujaf-java in Ubuntu Intrepid: Fix Released
Status in libgnumail-java in Ubuntu Intrepid: Fix Released
Status in libjaxp1.3-java in Ubuntu Intrepid: Fix Released
Status in libjdepend-java in Ubuntu Intrepid: Fix Released
Status in liboro-java in Ubuntu Intrepid: Fix Released
Status in libreadline-java in Ubuntu Intrepid: Fix Released
Status in libregexp-java in Ubuntu Intrepid: Fix Released
Status in libservlet2.4-java in Ubuntu Intrepid: Fix Released
Status in libxerces2-java in Ubuntu Intrepid: Fix Released
Status in rhino in Ubuntu Intrepid: Fix Released
Status in tomcat5.5 in Ubuntu Intrepid: Fix Released
Status in tomcat6 in Ubuntu Intrepid: Won't Fix

Bug description:
Binary package hint: ant

It reports wrong class format when used with JDK 5. It looks like it was compiled with JDK 6 without javac param -source 1.5 (which implies -target 1.5). It applies to latest ant version in intrepid. Not sure if it is bug or by design. Anyway it is not possible now to build app using JDK 5 with packaged ant so I had to download original upstream binary.