W3Schools Learner's Blog

W3Schools Programming knowledge summary website



eclipse "java.lang.UnsupportedClassVersionError" error

when i run main method in eclipse, have a "java.lang.UnsupportedClassVersionError " error, how to solve?

UnsupportedClassVersionError, It means that the JDK of your computer is not consistent with the JDK in the eclipse project.
it's jdk1.7.0_79 in my eclipse project, let's see jdk in my computer, open the cmd console, run java --version command, as follows.
it's jdk1.8.0_144, so, we have to keep them in agreement .

No comments:

Post a Comment

Note: only a member of this blog may post a comment.