Eclipse表示:“正在使用或无法创建的工作区,请选择其他工作区。”如何解锁工作区?

您所在的位置:网站首页 eclipse无法启动产品 Eclipse表示:“正在使用或无法创建的工作区,请选择其他工作区。”如何解锁工作区?

Eclipse表示:“正在使用或无法创建的工作区,请选择其他工作区。”如何解锁工作区?

2023-07-17 09:48| 来源: 网络整理| 查看: 265

本文翻译自:Eclipse says: “Workspace in use or cannot be created, chose a different one.” How do I unlock a workspace?

When I start, Eclipse says "Workspace Cannot Be Locked" 当我开始时,Eclipse会说“无法锁定工作区”

"Could not launch the product because the associated workspace is currently in use by another Eclipse application." “由于其他Eclipse应用程序当前正在使用关联的工作空间,因此无法启动产品。” or “Workspace in use or cannot be created, chose a different one.” 或“正在使用或无法创建的工作区,请选择其他工作区。”

But I know it isn't. 但我知道不是。

How do I "unlock" it? 我如何“解锁”它?

#1楼

参考:https://stackoom.com/question/zCsy/Eclipse表示-正在使用或无法创建的工作区-请选择其他工作区-如何解锁工作区

#2楼

There is another case where the path to the workspace may not exist, eg, if you have imported preferences from another workspace, then some imported workspace addresses may appear in your "open workspace" dialog; 在另一种情况下,工作空间的路径可能不存在,例如,如果您已从另一个工作空间导入了首选项,则某些导入的工作空间地址可能会出现在“打开的工作空间”对话框中; then if you didn't pay attention to those addresses, you would get the exact same error once you tried to open them. 那么如果您不注意这些地址,则在尝试打开它们时会得到完全相同的错误。

#3楼

Another possible cause of the “Workspace in use or cannot be created, chose a different one” issue is that the real path to your workspace may have changed . “正在使用或无法创建工作空间,选择另一个工作空间”问题的另一个可能原因是,工作空间的实际路径可能已更改 。

In my case, the real location of the workspace had changed, but I had used a symlink to make it look like it was in the same location. 在我的情况下,工作空间的实际位置已更改,但是我使用了符号链接使它看起来就像在同一位置。 I saw errors in logs indicating that eclipse was looking at the previous "real" location, as opposed to following the symlink, and this was causing the errors. 我在日志中看到错误,表明Eclipse正在查看先前的“真实”位置,而不是遵循符号链接,这是导致错误的原因。

In my case, I just moved the workspace back to its old location. 就我而言,我只是将工作空间移回了原来的位置。

#4楼

转到TaskManager(右键单击任务栏),然后选择Processess菜单栏,然后​​选择eclipse.exe,然后单击EndProcess。

#5楼

The answer @Boris gave is correct 99% of the time, however it can also happen if you open the workspace in an older version of Eclipse. @Boris给出的答案正确率是99%,但是,如果在较早版本的Eclipse中打开工作区,也会出现这种情况。 A workspace imported into/created with Juno will throw this error when opened in Galileo. 在Galileo中打开时,导入或使用Juno创建的工作区将引发此错误。

#6楼

I've seen 3 other fixes so far: 到目前为止,我还看到了3个其他修复程序:

in .metadata/, rm .lock file 在.metadata /中,rm .lock文件 if #1 doesn't work, try killing the process javaw.exe etc. then rm .lock file 如果#1不起作用,请尝试杀死进程javaw.exe等,然后删除rm .lock文件 if #1 and #2 don't work, try rm .log file in .metadata/, and double check .plugin/. 如果#1和#2不起作用,请尝试使用.metadata /中的rm .log文件,然后再次检查.plugin /。 This has always worked for me: relocate .metadata/, open and close eclipse, then overwrite .metadata back 这一直对我有用:重新定位.metadata /,打开和关闭eclipse,然后覆盖.metadata

The solution boils down to cleaning up the .metadata folder. 解决方案归结为清理.metadata文件夹。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3