Sometimes when using eclipse it loses references to the JRE.
i.e. It cannot find classes like Object or Arraylist.
Some projects report a problem while others don't and they both use the same JRE.
I have found that if you switch the installed JRE to another and then back again to the one you want to use, it will then work again
Is there a better way to stop it doing this?
EDIT: Reloading Eclipse doesn't solve the problem