When Tomcat starts a web project, it reports bad version number in. Class file (unable to load Class ...) Error

Source: Internet
Author: User

I. Problems Found
This error is reported when you start the Tomcat console.

Ii. Cause
The JDK version of Tomcat is different from the JDK version of The. Class.

Iii. Solution

Step 1: view the JDK version and location of myeclipse

Window-> preferences-> JAVA-> installed jres.

Step 2: view the compiler version of myeclipse

Window-> preferences-> JAVA-> Compiler

Step 3: view the compiler version of a specific project

Project Properties> JAVA> Compiler

The compiler version of myeclipse is equivalent to providing global guidance. You can set different compiler versions for specific projects.

Step 4: view the JDK version of Tomcat

Window-> preferences-> myeclipse-> servers-> tomcat-> tomcat6.0-> JDK

Be sure to use JDK of the same version and location as the problematic project.


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.