当我启动时,Eclipse显示“工作区不能被锁定”
“无法启动产品,因为相关的工作空间目前正在被另一个Eclipse应用程序使用”或“工作空间正在使用或无法创建,请选择另一个工作空间。”
但我知道它不是。
我如何“解锁”它?
当我启动时,Eclipse显示“工作区不能被锁定”
“无法启动产品,因为相关的工作空间目前正在被另一个Eclipse应用程序使用”或“工作空间正在使用或无法创建,请选择另一个工作空间。”
但我知道它不是。
我如何“解锁”它?
当前回答
使用选项-Dosgi.locking=none启动Eclipse。
我知道窍门了,而且很管用。
不要这样做,除非您知道没有人可以同时处理同一个文件。
其他回答
进入任务管理器(在任务栏中单击右键),选择进程菜单栏,选择eclipse.exe,单击EndProcess
下面是解决这个问题的几个步骤。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.
我不知道出了什么问题,但我通过直接在c驱动器(c:\dev)中创建一个目录来解决,而不是从我的主文件夹(c:\users\me\dev)。但我不用多想。在我的情况下,它是新的eclipse解压缩实例。我无法在eclipse文件夹中看到.matadata文件夹。感谢上帝的恩典,我解决了。
我也遇到了同样的问题,但是由于某些原因,工作区中的.lock文件没有被删除。甚至创建一个新的工作空间也会被锁定。
所以我所做的就是清理windows temp文件夹,%PREFETCH%文件夹和% temp %位置。重新启动系统,然后允许删除.lock文件。
也许它会帮助别人。
我观察到一个例子,当eclipse在强制退出,或Alt-f2 xkilled在linux中,尝试立即打开eclipse显示错误。甚至元数据/。锁文件在这种情况下不存在。 然而,它在大约两分钟后开始工作