To set path of JDK for your project in eclipse follow below steps:
- Right click on your project -> select properties.
- Click in Library tab
- To remove or update JRE/JDK remove existing from list as below.
See Also: Setup Java/JDK and Eclipse On Window & Linux

- Click on add Library and select option as “JRE System Library” and click on Next button.

- If you need to use existing JRE/JDK you can select from installed JRE or if need to add new one click on Add button.
- You will get popup of JRE definition. click on Directory option and select JAVA (JRE/JDK) version home directory as in below screen shot
- Click on Finish button.

- Select one Installed JRE which want to use on your project.
- Click on “Apply and Close” button.

- Finally selected JRE/JDK added to your project.
- Click on “Apply and Close” button.

One thought on “Eclipse : How to set java path of JDK/JRE?”
You must log in to post a comment.