After installing MyEclipse, when developing projects in MyEclipse, the default is to use MyEclipse as the JDK that comes with it, as shown in:
If we need to use our own installed JDK, then we need to reset it in MyEclipse and set the steps as follows:
Window→preferences
The "Preferences" dialog box appears, as shown in:
Click on the "Add ..." button to pop up the "Add JRE" dialog box, as shown in
Click the "next>" button to proceed to the next step, as shown in:
Select the directory where you want to add the JDK
By clicking the "Finish" button, you will see our newly added JDK, as shown in:
Tick our own JDK to use our own JDK when developing Java projects in MyEclipse.
After the steps above, replace the JDK version used by the MyEclipse development project with the one we have installed, as shown in:
When you use MyEclipse to develop Java projects, you typically do not use MyEclipse's own JDK, usually with our own installed JDK version, so we need to set up in MyEclipse the JDK version we are developing, which version of the JDK to use, This depends on the operating environment of the development project.