java.lang.unsupportedclassversionerror:org/apache/maven/cli/mavencli:unsupported Major.minor vers

Source: Internet
Author: User

One day changed the MyEclipse, replaced by 2016CI, the result from SVN download a project after the following error occurred:

Exception in thread "main" java.lang.unsupportedclassversionerror:org/apache/maven/cli/mavencli:unsupported Major.minor version 51.0
At Java.lang.ClassLoader.defineClass1 (Native method)
At Java.lang.ClassLoader.defineClassCond (classloader.java:631)
At Java.lang.ClassLoader.defineClass (classloader.java:615)
At Java.security.SecureClassLoader.defineClass (secureclassloader.java:141)
At Java.net.URLClassLoader.defineClass (urlclassloader.java:283)
At java.net.urlclassloader.access$000 (urlclassloader.java:58)
At Java.net.urlclassloader$1.run (urlclassloader.java:197)
At Java.security.AccessController.doPrivileged (Native method)
At Java.net.URLClassLoader.findClass (urlclassloader.java:190)
At Org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf (classrealm.java:401)
At Org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (selffirststrategy.java:42)
At Org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (classrealm.java:271)
At Org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (classrealm.java:254)
At Org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (classrealm.java:239)
At Org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass (launcher.java:144)
At org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (launcher.java:266)
At Org.codehaus.plexus.classworlds.launcher.Launcher.launch (launcher.java:229)
At Org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (launcher.java:415)
At Org.codehaus.plexus.classworlds.launcher.Launcher.main (launcher.java:356)



The hint error is that the JDK version used is incorrect, that is, the JDK version currently in use does not support the version to be used by MAVENCLI, here is a description:

Major.minor version 51.0 corresponds to the JDK1.7
Major.minor version 50.0 corresponds to the JDK1.6


At this time looked at the newly installed MyEclipse is configured in this way:




Processed as follows:



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.