This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Impact of JDK version on Tomcat

 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'd like to know what impact the version of my JDK has on Tomcat. I'm a little bit confused because Netbeans says Tomcat 5.5 is J2EE 1.4 compliant but using a source level of 1.5 or 1.6 for my code is obviously working, too.

I searched the WWW but i couldn't find a clear statement which parts of Tomcat are affected by the JDK and which ones are not. Should i tweak the compiler settings in conf/web.xml if i want to use source level 1.5 or higher in my Java code? Or does this only affect JSP compilation?

I hope someone can me ;) Thanks!

Marco
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marco Ehrentreich:
Netbeans says Tomcat 5.5 is J2EE 1.4 compliant but using a source level of 1.5 or 1.6 for my code is obviously working, too.


The version number of J2EE has nothing to do with the JDK version.
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, i see. I already assumed this...

Does this in consequence mean that i can take full advantage of whatever JDK version I'm using (at least until an upgrade of Tomcat will really be necessary)?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic