Java.lang.UnsupportedClassVersionError

Source: Internet
Author: User

Chen Kozhan-Welcome reprint, reproduced Please indicate the source, thank you!

==================

Originally intended to deploy the war package on the computer, after the deployment, encountered a small problem:

caused by:java.lang.unsupportedclassversionerror:com/huike/sort/dao/order/deliverylinedao:unsupported Major.minor version 51.0 (unable to load class Com.huike.sort.dao.order.DeliverylineDao)
At Org.apache.catalina.loader.WebappClassLoader.findClassInternal (webappclassloader.java:2961)

.

.

.

The reason for reporting this error:

Because Java class bytecode files compiled with a higher version of the JDK attempt to run on the lower version of the JVM , the reported error.

Note: The class file generated by the higher version of the JDK uses a format that may be different from the . class file format of the lower version of the JDK . In this way, the lower version of the JVM cannot explain the execution of this . Class file, which throws java.lang.UnsupportedClassVersionError unsupported class version error.

=================

Solution: Upgrade the JVM

Java.lang.UnsupportedClassVersionError

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.