JDK version switching in eclipse

Source: Internet
Author: User
This article applies to the server JDK version is too low, the development of the JDK version selected too high resolution.

Right-click Project propeties---project facets






Changes to the JDK version are complete, but there may be an error, the project name is preceded by an error x, but there is no indication of the specific error, the reason is


No JREs in workspace compatible with specified execution environment:javase-1.6

The execution environment specified in the workspace is compatible without jre:javase-1.6


This means that there is no 1.6 version of the JDK environment in your eclipse, and you need to add it manually

After installing the appropriate JDK version, click Windows---Preference







Add by clicking Add





Click Next > Proceed to the next step





Find the directory you want to change the version of the JDK to add







Select the JDK version you just added click OK to finish

It turns out that the wrong little red X is missing and your JDK version changes accordingly.




If this blog, to help you, or have some mistakes, please reply to give support or correction, thank you


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.