(Unsupported major.minor version 50.0) error is getting while starting tomcat
Use the following table to map the versions:
Major | Minor | Java platform version |
45 | 3 | 1.1 |
46 | 0 | 1.2 |
47 | 0 | 1.3 |
48 | 0 | 1.4 Example: 1.4.x |
49 | 0 | 1.5 Example: 1.5 |
50 | 0 | 1.6 |
51 | 0 | 1.7 |
For this example, there are 2 items to map:
a) Runtime Java version 1.4.x => major.minor is 48.0
b) Java class file shows "version 49.0", but it should be interpreted as: major.minor 49.0 => Java 1.5
Conclusion:
You are trying to run in a system that has Java 1.4 (major.minor 48) a Java class file that was compiled under Java 1.5 (major.minor 49), thus the error message: (Unsupported major.minor version 49.0)
In other words, the runtime (major.minor 48) does not support major.minor 49.
Check the runtime version of Java.
java -version
For example, the output might look like this:
java version "1.4.2"
Java 2 Runtime Environment, Standard Edition (build 1.4.2)
Yorumlar
Yorum Gönder