java.lang.Object cannot be resolved in Eclipse

后端 未结 18 2151
青春惊慌失措
青春惊慌失措 2020-12-13 09:12

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

相关标签:
18条回答
  • 2020-12-13 09:39

    My problem was that I had in Eclipse: Window / Preferences... and then in the tree on the left Java / Installed JREs: C:\Program Files\Java\jre7 I changed to: c:\Program Files (x86)\Java\jre7 It solved my problem.

    0 讨论(0)
  • 2020-12-13 09:40

    I got this error and what I had to do was remove the JRE from the Window/Preferences/Java/Installed JREs and re-add it. This somehow cleared up eclipse's cache and rebuilt the project successfully. To get rid of the error in the file-editor I also had to close it and open the file once again.

    0 讨论(0)
  • 2020-12-13 09:40

    I solved this by pointing my eclipse to the jre available in jdk.

    0 讨论(0)
  • 2020-12-13 09:42

    If your project specific (or if not applicable, workspace default) JDK/JRE is being referenced correctly and you've just begun to get this issue out of the blue: restart Eclipse.

    Unfortunately, "restart Eclipse" is one of the standard troubleshooting steps when a project won't build. Eclipse even has a dedicated entry under the File menu.

    0 讨论(0)
  • 2020-12-13 09:44

    I had this problem, and I understood that Eclipse has automatically imported a core reference, instead of the reference for the project I needed.

    Deleted the import, and rearranged it, and everything worked fine.

    0 讨论(0)
  • 2020-12-13 09:44

    Same problem facing Me Project->properties->Android
    And select the api level and also go in java build path and check some external jar file path if we already add in it.update the jar file path

    0 讨论(0)
提交回复
热议问题