Java.lang.UnsupportedClassVersionError (Unsupported Major.minor version 49.0) error

Source: Internet
Author: User

The error is as follows:

  

The error message is caused by inconsistent jar package versions, what is this 49.0?

Different versions of the JDK, the compiled class files are different. By looking at the first few bytes of the analysis class file, you can find the corresponding relationship, the detailed reference official, the minor version may have the difference:

J2SE 7 = Wuyi (0x33 hex),
J2SE 6.0 = (0x32 hex),
J2SE 5.0 = (0x31 hex),
JDK 1.4 = 0x30 Hex,
JDK 1.3 = (0x2F hex),
JDK 1.2 = 0x2e Hex,
JDK 1.1 = (0x2D hex).

Treatment method: Modify the project installed jars

Java.lang.UnsupportedClassVersionError (Unsupported Major.minor version 49.0) error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.