Fix unsupported Major.minor version 51.0 error

Source: Internet
Author: User
Tags unsupported

Unsupported Major.minor version 51.0 workaroundwww.111cn.net Editor: Swteen Source: ReprintI am using the Eclipse-jee-indigo + JDK 1.6.23 environment, and the result is unsupported Major.minor version 51.0 error prompt, let me introduce unsupported Major.minor version 51.0 Error Resolution 

Today's occasional colleague encounters a problem that deepens their understanding of the build path and Java compiler compliance level in eclipse.

Fix unsupported Major.minor version 51.0 error


Recently the new installation used Jdk7, compiled some classes to replace the original normal running project, replaced after the unsupported Major.minor version 51.0 error occurred. Online search has found the cause of the problem: using Jdk7 compiled class file to run in Tomcat based on JDK6, this error will be reported.

It's also easy to solve: Open the properties on the project in Exclipse-java compiler– Choose an appropriate version and recompile.

Specific steps

FIX: Project------> Right------> Properties------>java Compiler------>compiler Compliance level------> Select the JDK version you are using------> Apps.


Summary: Different JDK versions use different major.minor, which can cause this error. In the project to use the current computer configuration of the JDK version, avoid pigtailed.


Knowledge Expansion: Major.minor version, which is equivalent to the primary and secondary versions of a software, just here is the main and minor version number of a Java class that is identified.

Fix unsupported Major.minor version 51.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.