Type java.lang.object cannot be resolved
I switched my main development computer. I thought all I needed to do was to move my development directory from my previous computer to the new one.
When I start the Eclipse IDE, I started to get the “Type java.lang.object cannot be resolved” error everywhere (I mean EVERYWHERE).
After some research using Google, I found the solution!
I assume that Java has been installed correctly in your (new) machine. Do the following steps:
1. Right-click on your project.
2. Select Build Path.
3. Select Configure Build Path.
4. Select Libraries tab.
5. Select Add Library.
6. Select JRE System Library and select Next.
7. Remove the previous JRE System Libary.