Recovering a corrupted Eclipse Workspace
January 1st, 2009
Comments Off
I know there are sites available that detail how to recover from a corrupted Eclipse Workspace, so this is more for my benefit.
Recently I’ve begun to experience corrupted workspaces in my Eclipse IDE. It generally coinsides to my Tomcat server unable to stop in a timely fashion. Generally I have to kill Eclipse and restart. Most of the time the workspace won’t restart.
Steps to recover from a corrupted Eclipse Workspace:
- Shutdown/kill Eclipse
- Open up a command prompt or terminal
- Navigate to your workspace
- Navigate to /.metadata/.plugins/
- remove org.eclipse.core.resources (in terminal rm -r -f org.eclipse.core.resources)
- Navigate to your Eclipse home directory
- Run eclipse -clean
- Launch the corrupted workspace
- Re-import your projects; you should be able to re-import all projects straight from the workspace directory
- Let the workspace refresh…DONE!
Clearly what this does is remove some Meta Data from the workspace. By re-importing that Meta Data is restored. I must say though that this is quit a number of hoops to jump through. I’m just glad they aren’t firey hoops!
Hopefully someone will find this useful!