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