when installing Tomcat 6 (the latest version), it asks for the Java install directory, fair enough. But it seems to want Java version 5, which Sun is apparently end-of-life'ing, so for our environment that's not A Good Thing.

Here's its prompt, you can see it asks for version 5.0:

Tomcat

I guess what I'm asking is, can I run it against Java 6? I looked all over the tomcat website and found no mention of compatible java versions.

Thanks a lot

link|improve this question

40% accept rate
I found at least two guys say it works with java 6: nabble.com/Re:-Tomcat-and-Java6-p8728729.html marakana.com/blog/cool-tech/tomcat-on-java-6.html – Chris Aug 19 '09 at 23:34
feedback

2 Answers

up vote 4 down vote accepted

By looking at http://www.apache.org/dist/tomcat/tomcat-6/v6.0.20/ we can read

Tomcat 6.0 requires JRE 5.0. Read the RELEASE-NOTES and the RUNNING.txt file in the distribution for more details.

If you open RELEASE-NOTES you will see

===================
Dependency Changes:
===================
Tomcat 6.0 is designed to run on JSE 5.0 and later.

So it's should be fine.

link|improve this answer
2  
congratulations to apache/tomcat for making this information so easy to find. – Roy Rico Aug 19 '09 at 23:51
I'm hearing you roy. I would have expected something like "we test and offer paid support against java version X, Y, Z" – Chris Aug 20 '09 at 0:09
1  
You're right, if they could start by changing "Tomcat 6.0 requires JRE 5.0" by "Tomcat 6.0 requires JRE 5.0 or later" in all docs it would be a nice start. – radius Aug 20 '09 at 0:23
1  
Well, with some very limited testing, it seems to work fine with java 6. Thanks a lot – Chris Aug 20 '09 at 0:25
feedback

I have run Tomcat 6.x on various releases of OpenJDK 7 without a hitch. The better message would have been that Tomcat 6.x cannot run on Java 1.4.x or older releases

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.