Recovering a corrupt Eclipse workspace
Today as I sat down at my cubicle and did my daily routine to initiate eclipse. I encountered a horrible sight; eclipse would start and all of a sudden just crash.
I first tried the obvious solution, to clean out the workspace.
./eclipse -clean
Nope, no go, still eclipse kept crashing. Ugh, I fell into despair, all those key-binds and spring templates, all gone. So, rationally I hopped on to #eclipse on irc.freenode.net to get some feed back on my situation. Rcjsuen was kind enough to provide the answer that would solve my problem.
The solution was fairly straight forward. I had to remove org.eclipse.core.resources from my workspace.
cd ~/Documents/workspace/.metalog/.plugins rm -rf org.eclipse.core.resources
By removing org.eclipse.core.resources, you clear out all the project metadata from your workspace. However, don’t worry, once you start eclipse you can just go to “File -> Import -> import eclipse projects” and re-import all your workspace projects.

(7 votes, average: 4.86 out of 5)
Thank you! I was experiencing a different problem, but your solution fixed it. Many Eclipse commands stopped working, including Open Type and Refactor. They would produce “internal errors.” Now everything’s back to normal.
Much appreciated!
Hi,
I am not even able to access workspace dir. When I try to open the dir it says:
D:\eclipse>cd workspace
Data error (cyclic redundancy check).
Is there a way out or have I lost all my development?
Thanks,
Rahul
Don’t know.
Excellent. That helped a lot. Thanks!
Thanks!!!
Thx – saved my day!
Solved my problem, thanks!
However, if you are using a multi-module maven project with eclipse and the m2eclipse plugin, a simple project import didn’t get things set back up as they were. Here is how I got things working again:
http://blog.tauren.com/2009/10/repairing-corrupt-eclipse-workspace.html
Yep, saved my day too!
FYI – mine was in …/workspace/.metadata/.plugins rather than .metalog
I am using Galileo.
I agree with Andy, same location.
../workspace/.metadata/.plugins/ was where I found mine too,
Made my day! I had tried this earlier before seeing this seeing that plugin mentioned in the log. I backed out when I brought up eclipse and it had the correct tabs, but just claimed it couldn’t edit. So I tried the import as advised above, exited and came back in and it works again!
Thanks much.
Thanks! I was stumped and this helped me.
Just one of the few simple things that save the day.
Thank you Victor!
Thanks!!! Worked for me too
For me, it was even a little easier:
I just deleted “.snap” in the folder “org.eclipse.core.resources”. That didn’t damage (or reset) my workspace but Eclipse came up again
I don’t know if that works for everyone, I just had a single project in the workspace.
This posted helped me – however, I did make a backup of the workspace before I removed the resources folder. Once it was removed I opened Eclipse, imported my work spaces, then saw some strange errors around web.xml. I did a Project->Clean and that which took care of it.
Thanks.
Thanks. This saved my workspace!