如何修复 eclipse 中不再打开的工作区?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19361376/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to fix a workspace in eclipse that does not open anymore?
提问by user2057890
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.
我在 eclipse 中的工作区之一无法再打开了。其他工作区工作正常。我怎样才能解决这个问题?首先我认为这是一个日食问题,但由于其他工作区工作正常,工作区一定有问题。
回答by Saad Bilal
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 并删除 workbench.xmi 文件来解决这个问题:
.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi.
回答by Viktor Bre?an
For me, starting eclipse with -clearPersistedState
flag helped.
对我来说,用-clearPersistedState
flag启动 eclipse 有帮助。
回答by user7824731
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)
我正在使用带有 eclipse kepler 的 maven 项目,我也遇到了同样的问题(工作区没有打开),请按照以下步骤操作(请每天正确关闭机器以避免此类问题)
- 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
- 转到您要打开的工作区(您可能有多个工作区)
- .metadata 文件夹将在工作区中
- 删除这个文件夹
- 打开 eclipse(只需从桌面/任务栏单击/开始搜索 eclipse 并单击)
- 它将打开新的一个并将您的所有项目作为现有的 maven 项目导入
- 清理并构建项目
- 如果不是 Maven 项目,只需导入项目即可