欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Eclipse - The default workspace ‘/home/strong/eclipse-work’ is in use or cannot be created.

程序员文章站 2022-04-05 16:10:05
...

Eclipse - The default workspace ‘/home/strong/eclipse-work’ is in use or cannot be created.

Workspace Unavailable
The default workspace ‘/home/strong/eclipse-work’ is in use or cannot be created. Please choose a different one.

1. Workspace Unavailable

Eclipse - The default workspace ‘/home/strong/eclipse-work’ is in use or cannot be created.

Eclipse - The default workspace ‘/home/strong/eclipse-work’ is in use or cannot be created.

2. 删除 .lock 文件

workspace 配置文件中 .lock 文件 (workspace/.metadata/.lock),锁定了 workspace,删除 .lock 文件即可。

aaa@qq.com:~/eclipse-work/.metadata$ ll ./.lock 
-rw-rw-r-- 1 strong strong 0 Jan 15  2018 ./.lock
aaa@qq.com:~/eclipse-work/.metadata$ 
aaa@qq.com:~/eclipse-work/.metadata$ sudo rm -rf ./.lock 
[sudo] password for strong: 
aaa@qq.com:~/eclipse-work/.metadata$