当我启动时,Eclipse显示“工作区不能被锁定”
“无法启动产品,因为相关的工作空间目前正在被另一个Eclipse应用程序使用”或“工作空间正在使用或无法创建,请选择另一个工作空间。”
但我知道它不是。
我如何“解锁”它?
当我启动时,Eclipse显示“工作区不能被锁定”
“无法启动产品,因为相关的工作空间目前正在被另一个Eclipse应用程序使用”或“工作空间正在使用或无法创建,请选择另一个工作空间。”
但我知道它不是。
我如何“解锁”它?
当前回答
“工作区正在使用中或无法创建,请选择另一个”问题的另一个可能原因是,到您的工作区的实际路径可能已经更改。
在我的例子中,工作空间的真实位置已经改变了,但是我使用了一个符号链接使它看起来像是在相同的位置。我在日志中看到错误,表明eclipse正在查看之前的“真实”位置,而不是遵循符号链接,这就是导致错误的原因。
在我的例子中,我只是将工作空间移回原来的位置。
其他回答
当您没有正确关闭eclipse.exe时,就会发生这种情况。
*打开任务管理器->结束任务你的eclipse->现在打开eclipse.exe它将工作。
希望它能帮助到别人。
@Boris给出的答案在99%的情况下是正确的,但是如果您在旧版本的Eclipse中打开工作区,也可能发生这种情况。用Juno导入/创建的工作区在Galileo中打开时将抛出此错误。
我不知道出了什么问题,但我通过直接在c驱动器(c:\dev)中创建一个目录来解决,而不是从我的主文件夹(c:\users\me\dev)。但我不用多想。在我的情况下,它是新的eclipse解压缩实例。我无法在eclipse文件夹中看到.matadata文件夹。感谢上帝的恩典,我解决了。
下面是解决这个问题的几个步骤。4步对我来说很有用。
Delete .log files along .metadata folder. Check the current user permission make sure to check the full control checkbox click apply then OK. If you run system drive defragmentation or maintenance before you run eclipse editor sometimes original file path are not in their respective path to make sure run "previous version" time before your system maintenance of your drive where the eclipse workbench or something similar to this was saved. This last option is works for me. Check the drive letter of your current drive where the code editor was saved. If something unusual e.g before your maintenance your drive letter is K then after defragment or maintenance. The drive letter is now L hence you should change the drive letter to its original one that is K. to do this click the ff: Open control panel System & security Administrative tools Computer management Disk management in disk mngt choose the Drive example L then right click > change drive letter & path > click remove > then ok, open it again then > click add and > choose your original drive letter for that drive then click ok. If you use your computer for a long period of time do restart first to refresh everything.
当eclipse没有关闭时(从任务管理器或计算机关机时杀死eclipse进程),我就会面临这个问题,我尝试了以下步骤,它对我有用。
1)删除以“”开头的文件名。fileTable”
C: \ eclipse \ \ org.eclipse.osgi.manager配置
2)从该文件夹中删除日志文件,如以数字名称开头的文本文件
C: \ eclipse \配置
3)打开命令提示符(cmd)导航到此文件夹
C: \ eclipse
键入下面的命令
Eclipse干净启动