(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
4531.1
4601.2
4701.3
4801.4 Example: 1.4.x
4901.5 Example: 1.5
5001.6
5101.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

Bu blogdaki popüler yayınlar

About Android padding, margin, width, height, wrap_content, match_parent, R Class

@SerializedName and @Expose annotations