Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

First Tomcat version that supports Java 5

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
I am currently in the process of developing an Enterprise product using Java 5. the problem is that some of my customers use old versions of tomcat,Jboss and websphere.What i intend to do is to upgrade the JRE their servers to 1.5. But before doing this , i need to know what was the first version that supports Java5. I appreciate your reply.Sorry for posting the thread in the the 3 forums.

Thanks and longing forward to read from you.
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A product does not "support" a particular JRE version, although it may require it. Is that what you're asking?

Given that Servlets 2.5/JSP 2.1 are defined in JEE 5 -which requires Java 5-, it's likely that any implementation (like Tomcat 6) would also require Java 5.

Similarly, Servlets 3.0 is defined in JEE 6 -which requires Java 6-, so it's likely that any implementation (like Tomcat 7) would also require Java 6.
 
mohamed abdou
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf for your prompt reply ,
Well ,i think my question was not so clear,so let me re-describe the situation i am facing now:
1)I am developing a new application that gonna be sol for many customers
2)I decided to choose Java 5 as a J.R.E for my development environment.
3)Most of my customers use containers that supports Java 5.
4)But some of my customers have really old containers.For some reason they do not want to install a new application server.
5)The 2 solutions i have now are
a) Use Java 4, which means compromising all the great features Java 5 provide, and to use outdated frameworks instead of cutting edge technologies and frameworks(bye bye for
generics and annotations.Which means using old versions of struts,spring, jsf, hibernate or whatever frameworks i want to use)
b) Code my program using Java5 and install a J.R.E1.5 on those outdated servers.But first , i need to know if the container itself supports Java 5.So i need to know when exactly
tomcat started to support Java5.


Hope it is more clear now.
 
Ulf Dittmer
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You still have it backwards - a server does not *support* a certain JRE version, but it may *require* it.

If my previous post wasn't clear on which Tomcat version requires which JRE version, then the Tomcat site has the definitive word: http://tomcat.apache.org/migration.html
 
Saloon Keeper
Posts: 24867
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java 1.4 has passed End of Life and is no longer supported.

Tomcat moved to Java 5 as of Tomcat 5.5. Tomcat 5.0 was a Java 1.4 container.

What Ulf is trying to say is that because Java (unlike Microsoft) allows you to compile code to compliance to earlier versions, you can develop in Java 5, 6, or 7 and still safely deploy to Java 1.3-based containers. However, both Java 1.3 and the containers that were based on it are WAY past end-of-life, so please don't. Of course, if you do compile with "source=1.4", any attempts to use enums, annotations, parameterized types, and so forth will result in compile errors.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic