Paul Clapham wrote:You are assuming that the problem is because the JRE is not installed correctly. But whenever I've had that problem with Eclipse it's because Eclipse is configured incorrectly and it isn't pointing to an installed JDK (not JRE, we're talking about compiler errors).
So go into a project's build path and you should find one of the entries, probably the one at the bottom, says "JRE System Library [something]". If you click that entry it enables the "Edit..." button. Click that button and you'll get a box where hopefully you can poke around and see what doesn't look kosher.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:I'm not positive this will fix the problem, but this is what I would do.
* Uninstall all Javas
* Download the 64-bit version of Java here.
* Do a normal Java install
* In Eclipse, remove all the entries in Installed JREs
* Add the new JRE in Eclipse. Be sure it's the JDK JRE.
* Check that the Project points to the new Java JRE
* Refresh (F5)
Hope that helps.
All things are lawful, but not all things are profitable.
Consider Paul's rocket mass heater. |