Fix Eclipse java references database corruption?

前端 未结 8 1377
猫巷女王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.

提交回复
热议问题