'How to fix a workspace in eclipse that does not open anymore?

One of my workspaces in eclipse can't be opened anymore. The other workspaces work fine. How can I fix this? First I thought this is an eclipse problem, but since the other workspaces work fine, something must be wrong with the workspace.



Solution 1:[1]

Try this-->>Goto .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi and remove workbench.xmi file to solve this issue:

.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi.

Solution 2:[2]

For me, starting eclipse with -clearPersistedState flag helped.

Solution 3:[3]

I am using maven project with eclipse kepler ,I had also faced the same problem(workspace was not opening),please follow the below steps it may work (please shutdown your machine everyday properly to avoid such issue)

  • Go to your workspace which you wanted to open(you might have multiple workspace)
  • .metadata folder will be there inside workspace
  • Delete this folder
  • open eclipse(just click from you desktop/taskbar/start search eclipse and click)
  • it will open the fresh one and import all your project as existing maven project
  • clean and build the project
  • if not maven project just import the project it will work

Solution 4:[4]

if you delete the .metadata folder remember to import and reconfigure your workspace

Solution 5:[5]

Don't know if this would help anyone but I got an error with my workspace when I tried to split eclipse into multiple tabs on my monitor, and couldn't open my workspace again.

My solution is to use terminal to copy the contents (projects) inside the broken workspace only. For example:

cp -r oldWorkSpace/* newWorkSpace/

Then open eclipse using newWorkSpace. It would show that newWorkSpace is empty. You just need to import the copied projects inside newWorkSpace folder into itself.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Saad Bilal
Solution 2 Pang
Solution 3 Martin
Solution 4 GAbriel lopez
Solution 5 Captain Mockery