Eclipse says: “Workspace in use or cannot be created, chose a different one.” How do I unlock a workspace?
Just delete the .lock
file in the .metadata
directory in your eclipse workspace directory.
Precaution - If you delete the .metadata
folder all preference will be deleted.
I've seen 3 other fixes so far:
- in .metadata/, rm .lock file
- if #1 doesn't work, try killing the process javaw.exe etc. then rm .lock file
- if #1 and #2 don't work, try rm .log file in .metadata/, and double check .plugin/.
- This has always worked for me: relocate .metadata/, open and close eclipse, then overwrite .metadata back
The solution boils down to cleaning up the .metadata folder.
Go to TaskManager(Right Click in the Task Bar) and select Processess menu bar and select eclipse.exe and Click EndProcess