Error unsupported major when starting Tomcat Solution to minor version XXX
Recently, the project updated the JDK from 1.7 to 1.8. After downloading and installing the new JDK, when compiling and starting tomcat, an error is reported and a prompt: "unsupported major.minor version XXX". The specific solution process is not described in detail here. Share the solution with you.
First, this error occurs because the compiled JDK version is inconsistent with the JDK version used at runtime. So the solution is to unify the JDK version. The details are as follows:
1. Set the Maven compiler plugin JDK version
2. Eclipse global compiler compliance level
3. Compiler compliance level of the project
@H_ 404_ 25@
4. JDK used by Tomcat
Strictly speaking, you only need to set the first and fourth jdks to solve the problem, but in order to avoid recurrence in the future, you need to set the second and third steps.
Finally, the digital code corresponding to the JDK version is attached:
JDK 8 = 52, JDK 7 = 51, JDK 6.0 = 50, JDK 5.0 = 49, JDK 1.4 = 48, JDK 1.3 = 47, JDK 1.2 = 46, JDK 1.1 = 45
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.