11

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!

skaffman
  • 398,947
  • 96
  • 818
  • 769
unludo
  • 4,912
  • 7
  • 47
  • 71

4 Answers4

17

Officially Java 1.6 or later is supported.

enter image description here

This post goes into more detail.

sourcedelica
  • 23,940
  • 7
  • 66
  • 74
  • The "later" is not true anymore, documentation has changed. See http://stackoverflow.com/a/9294694/1140748 – alain.janinm Dec 29 '14 at 19:07
  • 1
    I've updated the first link. It was mistakenly pointing to the "Building Tomcat" page which is not for users but for people making changes to Tomcat itself. The page for Tomcat users says Java 6 or later. – sourcedelica Dec 30 '14 at 16:59
  • Thank you for the update ;) The migration guide also confirm that. I've corrected my answer too. – alain.janinm Dec 30 '14 at 18:35
3

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

Allan
  • 31
  • 1
3

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

Community
  • 1
  • 1
alain.janinm
  • 19,951
  • 10
  • 65
  • 112
0

i am using jdk6 with tomcat 7.i have following issues.

INFO: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6.

To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties.

Note that the deprecated Tomcat 7 WebSocket API will be available.

Gwenc37
  • 2,064
  • 7
  • 18
  • 22
Raghunath
  • 1
  • 7