Sunday, May 2, 2010

How to set the SDK JRE as the default JRE for Eclipse ?

First start the Eclipse. You will have to configure several options from the workbench preferences pages. Now open the preferences dialog by selecting Window > Preferences, as shown in Figure 1.

Figure 1. Eclipse preferences
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
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
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
Setting the default JRE for Eclipse and  Tomcat


Just Select OK, now we have configured JDK with Eclipse default JRE

No comments:

Post a Comment