The Unsupported major. minor version 52.0 error occurs when Tomcat runs the first servlet. tomcatservlet

Source: Internet
Author: User

The Unsupported major. minor version 52.0 error occurs when Tomcat runs the first servlet. tomcatservlet

When you run the first servlet program using Tomcat, an error occurs:

After finding the information, we found that the project compiled with the jdk of a later version runs on the jre of a later version. The final solution is that the compiled jdk is consistent with the running jre version.

Check that the jre used by Tomcat is indeed inconsistent with that used during compilation (two jdk versions were installed at the beginning );

The following code changes the jre of Tomcat to 1.8 to ensure normal operation:

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.