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.

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

1. Workspace Unavailable

在这里插入图片描述

在这里插入图片描述

2. 删除 .lock 文件

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

strong@foreverstrong:~/eclipse-work/.metadata$ ll ./.lock 
-rw-rw-r-- 1 strong strong 0 Jan 15  2018 ./.lock
strong@foreverstrong:~/eclipse-work/.metadata$ 
strong@foreverstrong:~/eclipse-work/.metadata$ sudo rm -rf ./.lock 
[sudo] password for strong: 
strong@foreverstrong:~/eclipse-work/.metadata$
发布了510 篇原创文章 · 获赞 1825 · 访问量 110万+

猜你喜欢

转载自blog.csdn.net/chengyq116/article/details/104879587
今日推荐