I'm trying to load a web-application on a server with jdk 1.4 and Tomcat 5.0.28. Firstly I tried to load the whole application compiled with jdk 1.5, but I had the following: javax.servlet.ServletException: (Unsupported major.minor version 49.0) Then I tried to load the whole application again, now compiled with jdk 1.4.2, but no changes. I even tried to empty Tomcat work directory, but the problem is still there. If I try to load my app with MY Tomcat (5.0.19) and jdk 1.4.2, all goes perfectly..what can I do?? Thank you in advance..and sorry for my English..
Joined: May 20, 2005
No one on this topic?? Please, it's REALLY important!!
However, note that there is a compiler flag you can set to force the 1.5 compiler to use a mode compatible with 1.4 and eliminate the problem. -source 1.4 does the trick. I am using Tomcat 5.5.9, Java 1.5 and compiling with that option. See the tooldocs for more about compiler options. Bill