Sophie Sepp
Sophie Sepp

Reputation: 551

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.

Upvotes: 26

Views: 65057

Answers (7)

Pedro Lima
Pedro Lima

Reputation: 21

Warning : deleting .metadata also deletes projects setups. So this worked for me:

  1. cmd
  2. cd eclipse folder
  3. .\eclipse.exe -clean -clearPersistedState

Upvotes: 2

Doctor
Doctor

Reputation: 11

Nothing worked for me so in the end created backup of .metadata and then .metadata->.plugins.->org.eclipse.core.resources.->.projects and there started removing projects one by one. One project was creating the problems for me. Also had -clean -clearPersistedState in eclipse.ini .

Upvotes: 1

Gustavo Ide
Gustavo Ide

Reputation: 21

ty! the -clearPersistedState flag helped. How I did, i open in powershell the folder where the eclipse.exe was and execute .\eclipse.exe -clean -clearPersistedState

Upvotes: 2

GAbriel lopez
GAbriel lopez

Reputation: 87

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

Upvotes: 0

Viktor Brešan
Viktor Brešan

Reputation: 5522

For me, starting eclipse with -clearPersistedState flag helped.

Upvotes: 13

user7824731
user7824731

Reputation: 61

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

Upvotes: 6

Saad Bilal
Saad Bilal

Reputation: 1837

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.

Upvotes: 72

Related Questions