Java bad version number in. class file

Source: Internet
Author: User

Error message:

Java.lang. unsupportedclassversionerror: Bad version number in . class file
At Java.lang.ClassLoader.defineClass1 (Native Method)
At Java.lang.ClassLoader.defineClass (Unknown Source)
At Java.security.SecureClassLoader.defineClass (Unknown Source)
At Java.net.URLClassLoader.defineClass (Unknown Source)
At java.net.urlclassloader.access$100 (Unknown Source)
At Java.net.urlclassloader$1.run (Unknown Source)
At java.security.AccessController.doPrivileged (Native Method)
At Java.net.URLClassLoader.findClass (Unknown Source)
At Java.lang.ClassLoader.loadClass (Unknown Source)
At Sun.misc.launcher$appclassloader.loadclass (Unknown Source)
At Java.lang.ClassLoader.loadClass (Unknown Source)
At Java.lang.ClassLoader.loadClassInternal (Unknown Source)
Exception in thread "main"

This problem occurs, usually due to the low compile level and run environment (JRE) versions of the project.

Workaround: Adjust the version of the project's compile level and run environment (JRE).

Java bad version number in. class file

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.