


I checked java -version on command prompt, it shows Java version 1.4.2_03 but when I tried to install new java version from it says that I’m having recommended Java 7 version. java version '1.6.030' Java(TM) SE Runtime Environment (build 1.6.030-b12). Exception in thread "main" : a (Unsupported major.minor version 51.0)Īt 0(Native Method)Īt (Unknown Source)Īt (Unknown Source)Īt (Unknown Source)Īt $100(Unknown Source)Īt $1.run(Unknown Source)Īt (Native Method)Īt (Unknown Source)Īt (Unknown Source)Īt $AppClassLoader.loadClass(Unknown Source)Īt (Unknown Source) To fix it, download JDK 7, and change the default JDK from 1.6 to 1.7. For example, if you compiled your jar with JDK 1.6, and try to run in a JDK 1.5 environment, the error message will change to this : Unsupported major.minor version 50.0 3. jfr file association is not registered by JDK installers. P.S major.minor version 51.0 JDK 1.7 / 7. The jmc launcher has been removed from the JDK bin directory, and the missioncontrol directory has been removed from the JDK lib directory. This version of the JDK no longer includes Java Mission Control (JMC). For example, in order to generate class files compatible with Java 1.4, use the following command line: With. I installed JDK7, a simple hello word program gets compile but when I run this I got following exception. Java Mission Control Is No Longer Bundled With the JDK. To fix the actual problem you should try to either run the Java code with a newer version of Java JRE or specify the target parameter to the Java compiler to instruct the compiler to create code compatible with earlier Java versions.

Like Like Answer Reply grzegorz. If you run javap against the class that failed it will give more details of the minor version: 0 major version: hope this helps. I just tried running mvn it give the following error :Įxception in thread "main" : org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0 at 1(Native Method) at (ClassLoader.java:637) at (ClassLoader.java:621) at (SecureClassLoader.java:141) at (URLClassLoader.java:283) at $000(URLClassLoader.java:58) at $1.run(URLClassLoader.java:197) at (Native Method) at (URLClassLoader.java:190) at .(ClassRealm.java:401) at .(SelfFirstStrategy.java:42) at .(ClassRealm.java:271) at .(ClassRealm.java:254) at .(ClassRealm.java:239) at .(Launcher.java:144) at .(Launcher.java:266) at .(Launcher.java:229) at .(Launcher.java:415) at .(Launcher.java:356)ĭDVMACROBINSU:flock-snippets robinsuri$ which mvn /Users/robinsuri/Downloads/apache-maven-3.3.3/bin/mvn DDVMACROBINSU:flock-snippets robinsuri$ which java /usr/bin/java DDVMACROBINSU:flock-snippets robinsuri$ ls -l `which java` lrwxr-xr-x 1 root wheel 74 /usr/bin/java -> /System/Library/Frameworks/amework/Versions/Current/Commands/java DDVMACROBINSU:flock-snippets robinsuri$ java -version java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.Possible Duplicate: unsupported major. The major version means that product is compiled with a later version than the Java version used to run it.
