Java. Lang. unsupportedclassversionerror: bad version number in. Class File
This error is caused by inconsistency between the JDK version running Tomcat and the JDK version supporting application.
So how can we solve the above problems?
Obviously: change their JDK versions to the same version.
The procedure is as follows:
1. Select JDK from the drop-down menu corresponding to compiler compliance level in windows --> preferences --> JAVA --> compiler.
2. window --> preferences --> myeclipse --> servers --> Tomcat n. X --> select the JDK version installed on your computer from the drop-down menu under Tomcat JDK name in JDK (it must be consistent with the JDK version in step 1 ).
If the problem persists, you don't have to worry about it. Because some eclipse versions have JDK versions, you have to change them.
3. window --> preferences --> JAVA --> installed jres, select the JDK version that is consistent with Step 1 and Step 2 on the right. If not, add the JDK version on your own. then you can select.