Bad version number in. Class file solution

Source: Internet
Author: User

Org. springframework. Beans. Factory. beancreationexception: Error creating bean with name 'sessionfactory 'defined in servletcontext resource [/WEB-INF/classes/applicationcontext. xml]: Invocation of init method failed;
Nested exception is Java. Lang. unsupportedclassversionerror: bad version number in. Class file (unable to load class com. Manager. BSO. Students)

Today, myeclipse8.5 is faulty. If you copy data from another workspace to another workspace, Tomcat will not be started.

Solution: Java program bulid path, Tomcat JDK, javaprogram --- javacompiler are integrated in three versions. Here I chose jdk1.5, but the same error still occurs. Finally, install jdk1.6, the three versions are all changed to 1.6 to solve the problem. I still don't know why, so I wasted 2 hours.

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.