(class file version 53.0), workaround for Java Runtime versions up to 52.0 error

Source: Internet
Author: User
Tags apache tomcat

This error is encountered when deploying an application on Apache Tomcat, and the specific error description is:

Java.lang.UnsupportedClassVersionError:HelloWorld have been compiled by a more recent version of the Java Runtime (class F Ile version 53.0), this version of the Java Runtime is recognizes class file versions up to 52.0 at Java.lang.ClassLoade R.defineclass1 (Native Method) ... at Sun.launcher.LauncherHelper.checkAndLoadMain (launcherhelper.java:495). )

The main contents are:

have been compiled by a further recent version of the Java Runtime (class file version 53.0), this version of the Java runtime Only recognizes class file versions up to 52.0 at Java.lang.ClassLoader.defineClass1 (Native Method)

That is, the current JRE is not able to compile the program, which is actually very simple.

The version of Tomcat does not correspond to the version of the JDK, the current JDK I am running is 1.8 and the Tomcat version I use is Tomcat 9 so this problem occurs.

Workaround: Either reduce the version number of Tomcat, without JDK9,

Of course I use the former, after all, JDK9 just come out, error or possible

OK, fix it.

(class file version 53.0), workaround for Java Runtime versions up to 52.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.