Over a million developers have joined DZone.

Fixing an Eclipse Workspace That Does Not Open Anymore

DZone's Guide to

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.

· IoT Zone
Free Resource

Discover why Bluetooth mesh is the next evolution of IoT solutions. Download the mesh overview.

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:

Eclipse Oxygen Stuck Loading Workspace

Eclipse Oxygen Stuck Loading Workspace

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).

Components Library View in Eclipse

Components Library View in Eclipse

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 workbench.xmi:


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.

Happy Reloading!

Take a deep dive into Bluetooth mesh. Read the tech overview and discover new IoT innovations.

workspace ,iot ,eclipse ide ,views ,bug ,tutorial

Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}