Check and specify the path for the correct JRE in your eclipse.
In Eclipse, go to Window-->Preferences then find the Installed JRE Apply the current path to the JRE from your directory.
Make sure your JRE has the necessary jar files C:\Program Files\Java\jre(your version)\lib\rt.jar etc.
Harsh
source share