File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Impact of JDK version on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Impact of JDK version on Tomcat" Watch "Impact of JDK version on Tomcat" New topic
Author

Impact of JDK version on Tomcat

Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

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

Joined: Jan 10, 2002
Posts: 61594
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

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

Joined: Aug 16, 2005
Posts: 14338
    
  22

Yes.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Impact of JDK version on Tomcat