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.
I had this issue too and in my case the issue was that the following line was missing from the .classpath file of the current project:
.classpath
Adding it solved the problem for me.