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