Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
    
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
add comment

2 Answers

up vote 5 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.

share|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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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