Modify the Eclipse jdk environment and eclipsejdk Environment

Source: Internet
Author: User

Modify the Eclipse jdk environment and eclipsejdk Environment

Cause: For project reasons, you need to migrate the original project from jdk1.6 to jdk1.7

Problem: the default jdk environment of Eclipse is jdk1.6.

Solution:

1) First, install jdk1.7 and configure the environment variables.

2) modify the jdk environment of eclipse

1. Menu Bar window --> preference

Select Installed jres under java, and I have imported the required jdk package. If there is no required version in Eclipse, click the Add button to select the Installed jdk1.7 installation directory for import, after the import, select jdk1.7.

Then, select the compiler option in java and select 1.7.

Click OK.

2. Right-click an existing java project and click properties.

First, select the project facets option, and change the java version to 1.7.

Select java build path and follow the steps shown in the figure.

Select the java compiler option and operate by graph.

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.