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