Fix Eclipse java references database corruption?

前端 未结 8 1354
猫巷女王i
猫巷女王i 2020-12-29 08:17

How do I make eclipse rebuild the database of classes contained within a project or workspace? This is what it uses to make the \"References\" menu action work, what it uses

相关标签:
8条回答
  • 2020-12-29 08:53

    This worked:

    • Export preferences from your current workspace (File->Export->General->Preferences)
    • Switch workspaces to a new workspace
    • Import preferences into the current workspace
    • Import your old project into the new workspace (File->Import->General->Existing Projects into Workspace), choosing "Copy project"

    That works for getting the references DB fixed. To get SVN (and presumably CVS) to work again:

    • Right click on project, choose Team, choose "Share project." Choose whichever type of versioning repository you were using and click next. Eclipse should realize that your project was already configured for this and just make you click Finish.
    • Update your sources with the repository.
    0 讨论(0)
  • 2020-12-29 08:55

    If it's just on a project level, I recall that you can simply close the project (i.e. Project -> Close project), then re-open it (Project -> Open project). You shouldn't even need to restart eclipse.

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