tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Burch <>
Subject Re: [Bug 53601] tomcat7 build fails with jdk1.6
Date Fri, 27 Jul 2012 11:31:36 GMT
On 25/07/12 12:55, wrote:
> Konstantin Kolinko <> changed:
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|NEW                         |RESOLVED
>           Resolution|---                         |INVALID
>                   OS|                            |All
> --- Comment #1 from Konstantin Kolinko <> ---
> You are wrong.
> 1). It is true that Tomcat trunk (aka Tomcat 8) builds only with jdk1.7.
> It is as intended. It is expected to implement the Servlet 3.1 specification.
> 2). Tomcat 7 builds with jdk1.6 and this status quo has not changed.
> Anyway your report noticeably lack of details. You should ask on the mailing
> list first, before playing around with Bugzilla.

I thought I would step through the latest trunk BUILDING.TXT 
instructions because I haven't updated my sandbox for at least a month.

Apache Ant(TM) version 1.8.2 compiled on December 3 2011
Trying the default build file: build.xml
Buildfile: /home/brian/sandboxApache/tomcat8/trunk/build.xml
Detected Java version: 1.6 in: /usr/lib/jvm/java-6-sun-
Detected OS: Linux

     [javac] Compiling 307 source files to 
     [javac] javac: invalid target release: 1.7
     [javac] Usage: javac <options> <source files>
     [javac] use -help for a list of possible options


I wondered whether we still need to tell people how to get a JDK...
if they haven't got one already, and aren't familiar with building 
complex projects, they probably shouldn't be encouraged to start 
building tomcat from the trunk! In the end, I thought the best 
compromise would be to just reference a couple of popular JDKs - we 
don't want to seem partisan, but equally don't want to get dragged into 
a debate about which is "best".

It might be helpful to list the JDKs that are used to build and test the 
production releases, but I don't know what they are.

Here is the trivial change to avoid this kind of confusion for the moment!

Index: BUILDING.txt
--- BUILDING.txt	(revision 1366303)
+++ BUILDING.txt	(working copy)
@@ -37,9 +37,10 @@

   1. If the JDK is already installed, skip to (2).

- 2. Download a Java Development Kit (JDK) release (version 1.6.x or later)
-    from:
+ 2. Download a Java Development Kit (JDK) release (version 1.7.x or later)
+    e.g.
+    or

   3. Install the JDK according to the instructions included with the 

I hope my contribution is both simple and helpful.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message