Exception: Unsupported major. minor version, major. minor

Source: Internet
Author: User
Tags unsupported

Exception: Unsupported major. minor version, major. minor

This problem occurred when using the latest springboot version today. The exception thrown is: UnsupportedClassVersionError.

Open the source code of the exception and look at it.

* Thrown when the Java Virtual Machine attempts to read a class * file and determines that the major and minor version numbers * in the file are not supported.

Obviously, it is because I read a class file that is not supported by a version. Then I checked the jetty version of springboot and found that it is the latest version, it is estimated that jetty's latest version is JDK1.8.

The result displayed on the official website is indeed the same, so of course the JDK version is upgraded.

Because the current default values of eclipse only support 1.7, we also need to install the plug-in on our own for 1.8.

For the specific installation process, I search for the following link from the Internet:
Http://jingyan.baidu.com/article/d169e186a8532a436611d8a7.html

 

Related Article

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.