我在/usr/local/eclipse.So中安装了eclipse,我的mac的其他用户可以访问它。但是,当我尝试从其他用户登录时,会出现以下错误:
Locking is not possible in the directory "/usr/local/eclipse/configuration/org.eclipse.osgi". A common reason is that the file system or Runtime Environment does not support file locking for that location. Please choose a different location, or disable file locking passing "-Dosgi.locking=none" as a VM argument.
/usr/local/eclipse/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied
为了解决这个问题,我在〜/ .bash_profile
中添加了以下行alias eclipse='eclipse -configuration ~/eclipse'
参考:http://computer-help-tips.blogspot.in/2011/05/users-encountering-invalid.html
当我尝试从命令行启动eclipse时,它工作正常但是当我从Dock启动时,同样的警报即将出现。 这个问题的解决方案是什么?
答案 0 :(得分:0)
您需要确保为您打算使用eclipse的所有用户正确设置锁定文件的权限。如果我没弄错的话,几个插件中都有锁文件。也许值得使用find来识别它们:
find . -name .fileTableLock -exec ls -las {} \;
还提到使用“-Dosgi.locking = none”表示您可以关闭锁定的需要,但这对我不起作用。我最终改变了权限......
更新以下修改:
找到每个文件后,您将使用chmod
更改相应组中用户的权限 - 即将这些eclipse锁定文件放在“eclipse”组中(man或google groupadd
和{{ 1}})使用群组权限chgrp
并将您的用户添加到该“eclipse”群组(man rw
,groups
)。例如:
usermod -G