How to update JRE in Eclipse
So I started my projects in Eclipse
with the Run Config command JRE 1.8_40
I was using , but I update it to 1.8_45
u Eclipse
to say this:
Unable to find executable file for jre1.8.0_40
Because when I installed the _45
Java version told me if I wanted to clean up the system by uninstalling old Java Versions, assuming that Eclipse was smart and knew I was updating it, but no, now I get this annoying error.
- Go to
Windows > Preferences
. - Find
Java > Installed JREs
. (Or just typeJREs
in the search box). - The JRE list is displayed on the screen.
- Click the button
Add
, find the new folder on your computer and select. - Remove the old JRE from the list.
Window -> Preferences -> Java -> Installed JREs -> Add ... - Right click your project -> Build Path -> Configure Build Path -> Add Library -> JRE system library -> next -> JRE default WorkSpace