Eclipse : How to set java path of JDK/JRE?


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.

 

Eclipse ClassPath Setting 1

Eclipse : How to set JDK/JRE Path

 

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

 

Eclipse ClassPath Setting 2

Eclipse : How to set JDK/JRE Path

 

  • 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.

 

Eclipse ClassPath Setting 3

Eclipse : How to set JDK/JRE Path

 

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

 

Eclipse ClassPath Setting 4

Eclipse : How to set JDK/JRE Path

 

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

 

Eclipse ClassPath Setting 5

Eclipse : How to set JDK/JRE Path

 

Advertisements

About Saurabh Gupta

My Name is Saurabh Gupta, I have approx. 11 Year of experience in Information Technology World manly in Java/J2EE. During this time I have worked with multiple organization with different client, so many technology, frameworks etc.
This entry was posted in eclipse and tagged , , , , , , , . Bookmark the permalink.

One Response to Eclipse : How to set java path of JDK/JRE?

  1. Pingback: [Solved] Maven: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK | Facing Issues On IT

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s