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

与世无争的帅哥 提交于 2019-12-03 11:39:47

问题


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.


回答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.



回答2:


For me, starting eclipse with -clearPersistedState flag helped.




回答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


来源:https://stackoverflow.com/questions/19361376/how-to-fix-a-workspace-in-eclipse-that-does-not-open-anymore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!