Setting the specific application versions of JDK and JRE in MyEclipse is very simple. There are three situations:

1. Set the default JDK and JRE environment.
Specific steps: menu window preferences java Installed JRES.
Click Yes. Click the ADD button in the right window. Remember to add the JDK directory under the Java directory installed instead of the JRE directory.
After the high price, select the jdk version you want to use in the list.
Then select the compiled jdk level under Compiler.

2. Environment settings for the project.
Right click the project menu properties Java Compiler, select Enable project specific settings, and remove Use compliance from execution environment The previous selection box allows you to select the version of jdk you want to use.

3. Environment settings of the application server.
Select the name of the application server you want to use, click in to see the JDK menu, and then you can select the version of jdk you want to use in the drop-down selection box in the right window.