如何找到我的旧 Eclipse 工作区?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9329705/
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 find my old Eclipse workspace?
提问by GeekedOut
I had a bunch of things go wrong after I reinstalled Eclipse, and now it doesn't even start.
重新安装 Eclipse 后,我遇到了很多问题,现在它甚至无法启动。
I saw on some forum that deleting old workspaces might help. How do I locate the old Eclipse workspace on my Windows 7 pc?
我在某个论坛上看到删除旧工作区可能会有所帮助。如何在我的 Windows 7 电脑上找到旧的 Eclipse 工作区?
This is the error that I get in Eclipse when it crashes upon starting:
这是我在 Eclipse 启动时崩溃时遇到的错误:
org.eclipse.equinox.p2.core.ProvisionException: Unknown repository type at file:/C:/eclipse/configuration/org.eclipse.osgi/bundles/128/data/listener_1925729951/.
Thanks!
谢谢!
回答by rkosegi
It depends where your previous instance of eclipse stores it. Default location for them is
这取决于您之前的 eclipse 实例将它存储在哪里。他们的默认位置是
C:\Users\<username>\workspace\
but it can be anywhere as I said.
但正如我所说,它可以在任何地方。
Check this out : How to change the eclipse default working directory?
看看这个:如何更改eclipse默认工作目录?
回答by Anil Chahal
Go to Eclipse's window option then go to preferences then type Workspace in top left corner, Under Startup & ShutDown click on Workspace option then you find correct path of Eclipse Workspace.
转到 Eclipse 的窗口选项,然后转到首选项,然后在左上角键入 Workspace,在 Startup & ShutDown 下单击 Workspace 选项,然后找到 Eclipse Workspace 的正确路径。
回答by Sam Gh
Go to C:\Users\\eclipse\jee-\eclipse\configuration.settings\org.eclipse.ui.ide.prefs
转到 C:\Users\\eclipse\jee-\eclipse\configuration.settings\org.eclipse.ui.ide.prefs
RECENT_WORKSPACES has all the workspaces used by that eclipse version. This solution help when you can't access eclipse (for some weird eclipse reason) to see the workspaces used.
RECENT_WORKSPACES 包含该 Eclipse 版本使用的所有工作区。当您无法访问 eclipse(由于一些奇怪的 eclipse 原因)以查看使用的工作区时,此解决方案会有所帮助。
回答by user1001
you can check eclipse folder
你可以检查eclipse文件夹
eclipse->configuration->.settings->org.eclipse.ui.ide.prefs
eclipse->configuration->.settings->org.eclipse.ui.ide.prefs
回答by mWillis
When you create a workspace in Eclipse, it creates a ".metadata" folder in the given location. You should be able to track down your workspaces by searching for those folders on your filesystem.
当您在 Eclipse 中创建工作区时,它会在给定位置创建一个“.metadata”文件夹。您应该能够通过在文件系统上搜索这些文件夹来追踪您的工作区。
回答by Pratik Gaurav
You will find the file at
您将在以下位置找到该文件
{eclipse installed location}\configuration.settings\org.eclipse.ui.ide.prefs
{eclipse 安装位置}\configuration.settings\org.eclipse.ui.ide.prefs