I reinstalled my eclipse. and then imported all the projects in the Eclipse, but every project has a common error:
Cannot find the class file for java.lang.Object.
This happened to me when I tried to merge two branches of an Android project using eGit. For some reason my build path basically disappeared (possibly one of the files was untracked).
To get the JRE and android libraries back, I just right-clicked on the project in the project explorer, and hit Android Tools -> Fix Project Properties (these options are only available if you have Android ADT installed).