Go to Window > Preferences >Java > Installed JREs
.
Then click Add...
and select Standard VM
.
You need to specify the directory of your JRE and give it a name.
When you are done, just check the right JRE in the same window.
By default, the checked JRE is added to the build path of newly created Java projects.
(my Eclipse SDK version is 3.7.0)