I have taking an existing, old, Java code base and changed one class. I have recompiled the code base in Java 1.5.0. I then successfully deploy this code on Tomcat.
Seems as you have compiled your code with a higher Java version than 1.5. You should check if you have the right JRE installed (Window
-> Preferences
-> Java
-> Installed JREs
).
You should also check if the Compiler compliance level is set to 1.5 (Window
-> Preferences
-> Java
-> Compiler
).
I'm assuming you are using Eclipse...