Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Tomcat 7 now compatible with Java 7?

Tags:

java-7

tomcat7

If not, when is it foreseen for?

If yes, do you know if there is something special to migrate an existing installation of Tomcat 7/Java 6 to Tomcat 7/Java 7?

Thanks!

like image 796
unludo Avatar asked Feb 15 '12 13:02

unludo


People also ask

Which version of Tomcat is compatible with Java 7?

Download Java Development Kit (JDK) versions 6 and 7 Building Apache Tomcat requires a Java 6 JDK to be installed and optionally a Java 7 JDK installed in parallel with Java 6 one. The Java 7 JDK is only required if you wish to build Tomcat with JSR-356 (Java WebSocket 1.1) support.

Is Tomcat 7 still supported?

The Apache Tomcat team announces that support for Apache Tomcat 7.0. x will end on 31 March 2021.

What version of Java does Tomcat use?

Apache Tomcat requires 64-bit Java/OpenJDK.

Which Tomcat version is suitable for Java 8?

Tomcat 10.0 builds on Tomcat 9.0. x, supports Java 8 and later, and is the first Tomcat release to migrate from the Java EE 8 specification to Jakarta EE 9.


3 Answers

Officially Java 1.6 or later is supported.

enter image description here

This post goes into more detail.

like image 144
sourcedelica Avatar answered Oct 03 '22 16:10

sourcedelica


Last month (Feb. 2013) I updated my Java from 1.6 to 1.7. However, the update has repercussion - Tomcat 7.0.37 is not running anymore after the Java update.

I tried un-installing the Java 1.7, replace with 1.6 and the Apache Tomcat runs smoothly again. I forgot to capture the exact error message and I couldn't find also on the server logs.

FYI.

Thanks

like image 27
Allan Avatar answered Oct 03 '22 17:10

Allan


EDITED

As pointed out by sourcedelica the Official documentation says you can use JDK 1.6 or later so you can use Tomcat 7 with JDK 1.7.

Also check the Tomcat 7 Migration Guide .


By the way your applications developed with JDK 1.6 may fail using JDK 1.7, especially if you use classes in sun.* packages (which is bad). Even if retro-compatibility is strong, some corner cases exist, see Oracle list of incompatibilities for more details.

You can also find some stuff about this in this SO article : New features in JDK 1.6 and 1.7

like image 36
alain.janinm Avatar answered Oct 03 '22 15:10

alain.janinm