Java. Lang. unsupportedclassversionerror: bad version number in. Class file solution

Source: Internet
Author: User

 

These days I encountered a problem: Java. Lang. unsupportedclassversionerror: bad version number in. class always occurs when I use myeclipse to compile a class! The method on the internet is generally classified as two. One can't find the. Class file, but I have. One said that the JDK version is incorrect, but I found it all according to what they said. No problem, it is 1.6. Myeclipse is also set to 6.0. However, today I found another method. I followed this method to check whether the version is correct. The version is 6.0, but the error 5.0 found here is correct! Share with you!

In myeclipse, change the compiler method: Project-> properties-> Java compiler-> Configure workspace setting, which can be set on the pop-up page.
When using this method, be sure to cancel the selected status of the enable project specific settings!

This article Reprinted from: http://www.blogjava.net/amigoxie/archive/2007/10/23/155162.html

Related Article

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.