且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Eclipse - “正在使用或不能创建的工作区”选择了另一个。

更新时间:2023-11-30 14:25:34

正确答案可以在这个(重复)问题



我在这里重现答案(它的作品!):


只需删除.lock文件即可。 eclipse中的元数据目录
工作区目录



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 reproduce here the answer (it works!):

Just delete the .lock file in the .metadata directory in your eclipse workspace directory