Eclipse - "Workspace in use or cannot be created, chose a different one." [duplicate]
I'm trying to create a workspace in the /Users/Shared/
directory with the thought that I can share that workspace between users. The problem is that after I create the workspace and change the permission on it, I encounter the error below (image) without even switching to a different user.
I changed the permissions from
/Users/Shared $ ll
drwxr-xr-x 3 HristoOskov wheel 102 Sep 18 20:07 myWorkspace
... to...
/Users/Shared $ ll
drwxrwxr-x 3 root admin 102 Sep 18 19:45 myWorkspace
So what am I doing wrong here? How should I configure this workspace so that I can 1. get rid of the error message and 2. access it from both accounts without seeing the error message?
By the way, I'm working on Mac OS X Lion v10.7.1.
Right answer can be found in this (duplicate) question.
I reproduced the answer here (and it works!):
Just delete the .lock file in the .metadata directory in your eclipse workspace directory
I've seen 3 other fixes so far:
- in .metadata/, rm .lock file
- if 1) doesn't work, try end process javaw.exe etc. to exit the IDE
- if 1)&2) doesn't work, try rm .log file in .metadata/, and double check .plugin/.
- This always worked for me: relocate .metadata/, open and close eclipse, then overwrite .metadata back
The solution boils down to clean up the .metadata folder with correct contents
Sometimes deleting the .lock file does not work. You can try this:
Remove RECENT_WORKSPACES line from eclipse/configuration/.settings/org.eclipse.ui.ide.prefs
for windows users: In case of you can't remove .lock
file and it gives you the following:
And you know that eclipse is already closed, just open Task Manager then processes then end precess
for all eclipse.exe occurrences in the processes list.
Workspaces can only be open in one copy of eclipse at once. Further, you took away your own write access from the looks of it. All the users in question have to have the 'admin' group for what you did to even work a little.