For those running Tomcat 5.5 on a JDK 1.4, there will be compatibility issues. Testing it on Eclipse, the error would appear as such.
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
This was what Eclipse would show if you came up with this error. Well, all one needs to do is to run the Tomcat on top a different Java Environment which is JDK 5 and above compliant.
Here’s how to do it.
Running Tomcat 5.5 Possible?
On your Eclipse program go to Window > Preferences.
Go to Server > Runtime Environments and select Apache Tomcat v5.5 and click Edit. Then you will proceed to this screen.
Under JRE, change it to another JRE, they have to be JDK6 or jre6. Do note, please install the latest JRE (Java Runtime Environment) or get the JDK 6 to add it in as a JRE beforehand.
Of course if you would like to learn more to configure your tomcat, you can look at my other article.



Yuo rock! thank you1