How to recover corrupted Eclipse workspace?

后端 未结 15 1034
醉酒成梦
醉酒成梦 2020-12-07 16:43

I just managed to corrupt contents of my Eclipse .metadata directory. Starting up with eclipse -clean did not work out. Deleting .metadata and then importing all projects, p

15条回答
  •  旧时难觅i
    2020-12-07 17:13

    I have succesfully recovered my existing workspace from a totally messed up situation (all kinds of core components giving NPE's and ClassCastExceptions and the like) by using this procedure:

    • Open Eclipse
    • Close error dialog
    • Select first project in the workspace
    • Right-click -> Refresh
    • Close error dialog
    • Close Eclipse
    • Close error dialog
    • Repeat for all projects in the workspace
    • (if your projects are in CVS/SVN etc, synchronize them)
    • Clean and rebuild all projects
    • Fixed

    This whole procedure took me over half an hour for a big workspace, but it did fix it in the end.

提交回复
热议问题