Bad version number in. Class File

Source: Internet
Author: User

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.

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.