major minor version errors

These types of errors are caused by a Java version mismatch between the compiled proxies and your runtime.

"bad class file. class file has wrong version 50.0, should be 48.0."

Unsupported major.minor version 50.0
JSPG0091E: An error occurred at line: 2 in the file: /login.jsp
JSPG0093E: Generated servlet error from file: /login.jsp

Below are a list of some of the version numbers and their corresponding Java runtimes:
Version 50.0 = Java 1.6.x
Version 49.0 = Java 1.5.x
Version 48.0 = Java 1.4.x

The server is expecting 48.0 version of the code, meaning, code built with 1.4.x version of jvm, but, the supplied code was built against version 50.0 meaning 1.6.x version of the jvm.

What one can do to solve this is, if you use RAD kind of tools to build the code, configure build path to have appropriate JRE, clean your builds and re build.


Dream World said...

Nice Blog Visit My Blog:::
Online Natural Photo

బద్రి said...

Well, you can choose java compiler compliance level in RAD and eclipse in case if you are using higher versions (5 or 6).

(Responding later.. but better late than never :-) )