1. 程式人生 > >雙擊Eclipse提示“The default workspace “xxxx” is in use or cannot be created Please choose a different on

雙擊Eclipse提示“The default workspace “xxxx” is in use or cannot be created Please choose a different on

原因

出現這種情況一般是workspace的配置檔案中出現了.lock檔案(workspace/.metadata/.lock),鎖定了workspace。

解決

把.lock檔案刪除即可。
在這裡插入圖片描述
如果該檔案不能刪除,可能是因為javaw.exe程序未結束,結束該程序及eclipse.exe程序即可刪除。
正常情況下,如果你打開了一個workspace,在想開啟另一個workspace也會出現上面的提示
在這裡插入圖片描述