Error after eclipse changes JDK version

Source: Internet
Author: User

In the actual development process, we may need to change the JDK version for the project. However, after the replacement will be an error, as follows:

Java compiler level does not match the version of the installed Java project facet.

Workaround:

First step: Set up the Eclipse JDK version

Windows---->preferences---->java---->installed JREs

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1120165/201703/ 1120165-20170322131723205-964319006.png "style=" margin:0px;padding:0px;border:none; "/>

Step two: Set the JDK build version

Windows---->preferences---->java---->compiler

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1120165/201703/ 1120165-20170322132016627-991013106.png "style=" margin:0px;padding:0px;border:none; "/>

Step Three: Right-click the project and set the JDK version to the above unified

Right-click the project---->properties---->java Compiler

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1120165/201703/ 1120165-20170322132216002-243556163.png "style=" margin:0px;padding:0px;border:none; "/>


Error after eclipse changes JDK version

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.