The type java.lang.object cannot be resolved - Eclipse buildpath not working

三世轮回 提交于 2019-12-05 06:27:09

This worked for me :

  • Right click on your project -> Build Path -> Configure Build Path
  • Go to 'Libraries' tab
  • Click on 'Add Library' -> JRE System Library -> Next -> Workspace default JRE (or you can add Alternate JRE) -> Finish

Right Button in the Project: Build Path >> Configure Build Path >> Click JRE System Library >> Remove

Then click: Add Library >> JRE System Library >> Next >> Installed JREs >> Select JRE >> Ok >> Finish >> Apply

You can follow instruction to install a JDL (which includes a JRE) for Mac here.

Depending on your processor, the downloaded file has one of the following names:

  • jdk-8uversion-macosx-amd64.dmg
  • jdk-8uversion-macosx-x64.dmg

Where version is 6 or later.

  • Download the file.
  • Before the file can be downloaded, you must accept the license agreement.
  • From either the Downloads window of the browser, or from the file browser, double click the .dmg file to launch it.
    A Finder window appears containing an icon of an open box and the name of the .pkg file.
  • Double click the package icon to launch the Install app.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!