I have a problem with Eclipse from Mac OSX Mountain Lion. I recently installed the Android SDK and in my java projects I received the following message:
The java.lang.Object type cannot be resolved. This is indirectly referenced from required .class files
Considering this problem , it would seem that I do not have the correct JRE defined in the build path of my project. Checking the project creation path using the properties> Java Build Path> Libraries. I see that there is a JRE system library next to it. However, when I click Add Library ...> JRE System Library, I get a message:
An error has occurred. See Error Log for more details. java.lang.NullPointerException
Then I try to click Eclipse> Preferences> Java> Installed JREs and see an empty list. I am trying to add ... a standard virtual machine, but I cannot find the location of my JRE./Library/Java/JavaVirtualMachines/ empty and /System/Library/Frameworks/JavaVM.framework does not exist.
Does anyone know how I can fix this problem?
source share