eclipse project jdk

gudii9
gudii9 used Ask the Experts™
on
By mistake i removed the jre default from eclipse java project instead of updating jre with jdk as beow

Here is the complete sequence in Eclipse Luna:
Right click your project > properties.
Select “Java Build Path” on left, then “JRE System Library”, click Edit…
Select "Workspace Default JRE"
Click "Installed JREs"
If you see JRE you want in the list select it (selecting a JDK is OK too)

how to add jdk 1.8
please advise
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
If you see JRE you want in the list select it (selecting a JDK is OK too)

Yes. Thats fine.


how to add jdk 1.8
Below are the steps:
Right click your project > properties.
Select “Java Build Path” on left, then “JRE System Library”, click Edit…
Select "Workspace Default JRE"
Click "Installed JREs" (New popup appears)
Click on "Add" (New popup appears)
Select "Standard VM" and  Click on "Next"
Click on "Directory" and select the path to your JDK 1.8 installation Directory.  
Click on "Finish".

You will see JDK is added to the list of Installed JREs.

Hope it helps.

Author

Commented:
Select “Java Build Path” on left, then “JRE System Library”, click Edit…
i do not see any such option under java build path as attached
please advise
jdkOption.png

Commented:
Just saw the image. Click on the "Add Library" and share the snap, would like to know what options you are seeing.

Author

Commented:
i see like system default jre 1.8 etc

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial