Code report version Error in eclipse

Source: Internet
Author: User

Today, I met the code in eclipse has been an error, but just do not know what the reason, later asked a friend to know is the problem of compiling the environment, record.

The JDK version of the project build path is the one that the compiler needs to use when developing, for example, if you use JDK1.4, you cannot use generics.
And the Java compiler compliance level is set by the Java code you have written, according to what JDK version is compiled, For example: Set is 1.4, the compiled class file can be run on more than 1.4 JRE, if the use of 5-level compilation, you can not run in the environment of 1.4, will be prompted version too high.
As long as the JDK version of Build path is above or equal to the level of Java compiler compliance levels

Code report version Error in eclipse

Related Article

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.