Fixing an Eclipse Workspace That Does Not Open Anymore
Has your Eclipse workspace just stopped loading? In this post, we take a look at how you can correct this issue without having to create a new workspace.
Join the DZone community and get the full member experience.Join For Free
It can happen to everyone using Eclipse: launching Eclipse with a workspace, and then it is stuck loading it. As a last resort, create a new workspace and go on? Possible, but painful, right? For some time, I have this strange issue nagging me. From time to time, I’m not able to switch to a workspace that worked before. The IDE starts loading, but then is stuck:
The problem happens to me for multiple versions of Eclipse, including Oxygen (4.7). What I have found out is that it is because of some views open in the workspace, and they somehow might block the Eclipse startup. For example, the Processor Expert ‘Component Repository’ view can cause this in Eclipse Neon (4.6) or Oxygen (4.7).
So the usual workaround was to open that workspace with another instance of Eclipse (not having that view), closing that view in the Eclipse Perspective, and then I was able to load that workspace again.
Knowing that this has something to do with the perspectives and views, and thanks to a tip (thank you, Livio!), I have finally found the solution to unblock such a workspace.
Inside the workspace .metadata folder, there is a file named:
This file stores the perspective window arrangements. So after deleting that file, the IDE windows are reset, and I’m able to load that workspace again.
I hope this tip is useful for everyone having such an occasional problem.
Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.