(Class file version 53.0), Java Runtime versions up to 52.0 error solution, 53.052.0

Source: Internet
Author: User

(Class file version 53.0), Java Runtime versions up to 52.0 error solution, 53.052.0

This error occurs when you deploy an application on Apache Tomcat. The specific error description is as follows:

Java. lang. unsupportedClassVersionError: HelloWorld has been compiled by a more 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 )............ at sun. launcher. launcherHelper. checkAndLoadMain (LauncherHelper. java: 495)

The main content is:

Has been compiled by a more 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 cannot compile the program. This problem is actually very simple,

This problem occurs because the Tomcat version does not match the JDK version. Currently, jdk 1.8 is run and Tomcat 9 is used.

Solution: either reduce the Tomcat version, or use JDK 9,

Of course, I use the former. After all, after JDK 9 was just released, an error is still possible.

OK.

 

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.