(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.