Fix Eclipse java references database corruption?

前端 未结 8 1379
猫巷女王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:48

    When this happens I usually have to delete the projects from the workspace, go to command line and rm -rf .settings .profile .classpath and then reimport the projects back in. Sometimes I have to delete the metadata directory (which means I have to reinstall some of my plugins). I have yet to find an actual fix for this. Cleaning the project does nothing to help.

    You shouldn't have "hours of restoration" work to do if you just delete the .settings .profile and .classpath. You just need to reimport the projects back in after removing them from the workspace. While an annoyance, it shouldn't take more than 5 - 10 minutes.

提交回复
热议问题