2013年12月24日 星期二

Exception in thread "main" java.lang.UnsupportedClassVersionError: : Unsupported major.minor version 51.0

Java Version    Major Version
Java 4          48.0
Java 5          49.0
java 6          50.0
java 7          51.0




References :
How to fix java.lang.unsupportedclassversionerror unsupported major.minor version 49.0 50.0 51.0 in Java | Java67

1 則留言:

  1. I had the problem whereby I was having to run a Maven compilation on my project from the command line in order to run my unit tests; if I made a change to the test class and let Eclipse automatically recompile it, then I got the "Unsupported major.minor version 51.0" error.

    I do have both JDK6 and JDK7 installed, but all my JRE settings were pointing at 1.6, both in the pom and from the project properties page in Eclipse. No amount of Maven Update Project and/or refreshing solved this.

    Finally I tried closing the project and re-opening it, and this seemed to fix it! HTH

    draw and print qrcode in java

    回覆刪除