Exception in thread "main" java.lang.UnsupportedClassVersionError:Unsupported Major.minor version 52

Source: Internet
Author: User
Tags unsupported

Error:

Exception in thread "main" Java.lang.unsupportedclassversionerror:com/fsc/mina/client/transportservice: Unsupported Major.minor version 52.0
at Java.lang.ClassLoader.defineClass1 (Native method)
at Java.lang.ClassLoader.defineClass (classloader.java:800)
at Java.security.SecureClassLoader.defineClass ( secureclassloader.java:142)
at Java.net.URLClassLoader.defineClass (urlclassloader.java:449)
at Java.net.urlclassloader.access$100 (urlclassloader.java:71)
at Java.net.urlclassloader$1.run ( urlclassloader.java:361)
at Java.net.urlclassloader$1.run (urlclassloader.java:355)
at Java.security.AccessController.doPrivileged (Native method)
at Java.net.URLClassLoader.findClass ( urlclassloader.java:354)
at Java.lang.ClassLoader.loadClass (classloader.java:425)
at sun.misc.launcher$ Appclassloader.loadclass (launcher.java:308)
at Java.lang.ClassLoader.loadClass (classloader.java:358)
at Sun.launcher.LauncherHelper.checkAndLoadMain (launcherhelper.java:482)

According to the prompts it is obvious that the version mismatch is caused by the workaround:

1, the project right key-->properties-->java compiler-Compiler compliance level from 1.8 to 1.7 (or your JAVA virtual machine version).

2, the configuration of the environment variable%java_home%\bin, placed in the front of the path.

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.