6.22.2011

How to fix a corrupted workspace ?


Recently my workspace started behaving a little weird, it was all functional last week but wasn't responding at all when I tried bringing it up on a slow Monday morning. Thought would give it more time as it's Monday, but no luck ...finally, after spending a couple of hours on google, landed at this post 'Recovering a corrupted Eclipse Workspace' by James Hawes.

Listing the same here for future reference.
  • Shutdown/kill Eclipse/RAD
  • Navigate to your workspace
  • Navigate to /.metadata/.plugins/ (C:\rad\workspace\.metadata\.plugins)
  • remove org.eclipse.core.resources (command: rm -r -f org.eclipse.core.resources)
  • Start Eclipse/RAD in clean mode (Right click on the RAD/Eclipse shortcut-> properties-> change the target to include a -clean at the end. eg: "C:\IBM\RAD75\eclipse.exe -product com.ibm.rational.rad.product.v75.ide -clean" )
  • Launch the corrupted workspace
  • Re-import your projects; you should be able to re-import all projects straight from the same workspace directory.
  • Let the workspace refresh..clean..build…DONE!

No comments:

Post a Comment