When I installed the latest installment in Mac OSX - the Mountain Lion - I experienced some problems getting Eclipse to work I also lost most of my Android developer files
I had that error almost every time I launched Eclipse for the first time; if I close and then re-open Eclipse, the error is gone.
I found this solution useful, though (I've copied here to protect the link, credit goes to the original author):
- In Eclipse go to Windows -> Preferences -> Java -> Installed JREs.
- Select the currently active JRE/JDK and press the Edit button.
- Select the rt.jar and change its position in the list of JRE system libraries (e.g. press the Up button once).
- Confirm all changes, clean and rebuild the workspace.
- The next time you face the problem reposition the rt.jar again (or reset the order by pressing the Restore Default button).