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.
69 comments so far
« Older CommentsLeave a Reply
Pingbacks/Trackbacks
- Sönke Greve » Blog Archive » Eclipse “could not load/create … Plugin”
- t8d blog » Blog Archiv » Eclipse Workspace wiederherstellen inklusive SVN
- Eclipse refactoring methods (specifically extract method) have stopped working | Gravity Layouts
- Eclipse locking up/not responding? Try this … | Doctor J's Blog
- Eclipse locking up/not responding? Try this … « Sarath's Blog

(43 votes, average: 4.58 out of 5)

Worked like a charm! Thanks for posting.
thanks sooo much!!
i would have given up eclipse if this thing kept going!!
I had to erase the entire workspace/.metadata directory before eclipse would load.
Great, this is the first solution that worked.
Tanks a lot.
Thanks!!! worked!
Worked for me!!
Thanks a lot!!
This worked sooo well,thanks. Now i can work again…wait a minute, thats not good lol
It worked just fine! thanks!
Thanks a lot… it really worked an save some hard work …
Most of the time, deleting the .snap file was enough.
This way u don’t have to import your whole project(s) again.
Hi Frens,
I am facing same issue in my eclipse I am trying same solution what Victor says but I did not get
“File -> Import -> import eclipse projects” what does mean of import eclipse project ? To avoiding/recover lost workspace we removing rm -rf org.eclipse.core.resources this folders right ? How can I get it back my old workspace setup back ..? still I am not getting anyone willing to help ?
Thanks,
Sagar Vyas
Thanks a lot ! It helped in a crucial situation
Excellent. it worked very well.
Buenisimo…Gracias por la informacion
No matter if some one searches for his essential thing, therefore he/she wants to be available that
in detail, so that thing is maintained over here.
Clutch…
simple and neat…
Its really helpful for me. Thanks for your post.
Hi, I tried different way and it worked. Check it out
http://errorkode.com/viewtopic.php?f=20&t=8&sid=40cff1661bf0ace12878d6d6fb7e75ac