Tomcat launches Web project report bad version number in. class file (unable to load class ...) The wrong way to solve

Source: Internet
Author: User

first, find the problem: start the Tomcat console to report the error.

Second, Reason:The JDK version of Tomcat is inconsistent with the JDK version of Compile. Class.   Third, the solution: Step One:View MyEclipse's JDK version and location:Window->preferences->java->installed JREs. Set as shown in the following:   Step Two:View the compiler version of MyEclipse:Window->preferences->java->compiler,set to 6.0 (or 7.0) as shown:    Step Three: View the compiler version of a specific project: Specific Project properties->java->compiler; the compiler version of MyEclipse is equivalent to commanding the whole world, and specific projects can be set to different compiler versions  Step four: View the JDK version of Tomcat (important): WINDOW->PREFERENCES->MYECLIPSE->SERVERS->TOMCAT->TOMCAT6.0->JDK Be sure to keep the JDK with the same version and location as the problematic project. As shown in the following: then restart the project and it's OK!

Tomcat launches Web project report bad version number in. class file (unable to load class ...) The wrong way to solve

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.