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.