Figure 1. Eclipse preferences

Select the Java option from the left-hand tree view. Expand the Java element and select Installed JRE's, as shown in Figure 2.
Figure 2. JRE preference settings

Click Add and navigate to the JRE directory of the SDK you installed during the installation phase of the configuration above, as shown in Figure 3. Click OK.
Figure 3. Adding a JRE to the Eclipse preference settings

Check the check box beside the JRE you just added from the SDK you installed, as shown in Figure 4. This sets this JRE as the default JRE to be used by Eclipse.
Figure 4. Setting the default JRE for Eclipse

Just Select OK, now we have configured JDK with Eclipse default JRE
No comments:
Post a Comment