无法打开 Eclipse(配置区域.. 错误)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19336470/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to open Eclipse (configuration area .. error)
提问by Kranthi
When try to start my Eclipse I am getting the following error:
当尝试启动我的 Eclipse 时,我收到以下错误:
The configuration area at '/usr/lib/eclipse/configuration' could not be created. Please choose a writable location
无法创建位于“/usr/lib/eclipse/configuration”的配置区域。请选择可写位置
Can anyone help me out in this?
任何人都可以帮我解决这个问题吗?
回答by Steve Oh
I had a similar problem on a linux machine, where eclipse was unpacked as root and started by a regular user.
我在 linux 机器上遇到了类似的问题,其中 eclipse 以 root 身份解压并由普通用户启动。
This kind of setup is call "shared install" (see Eclipse Help).
这种设置称为“共享安装”(请参阅Eclipse 帮助)。
You will encounter problems, if you run/ran your eclipse as root, as in this case, a "private install" is assumed and the configurationdirectory is so-called initialized.
你会遇到问题,如果你以 root 身份运行/运行你的 eclipse,在这种情况下,假设一个“私有安装”并且配置目录是所谓的initialized。
The solutionis, to restore (revert) the configuration structure from the inital tar.gz/zip-package. Here, is a sample dir structure from Eclipse Kepler, mainly consisting of a config.ini file:
该溶液是,为了从inital的tar.gz /拉链包恢复(复原)的配置结构。这是来自 Eclipse Kepler 的示例目录结构,主要由 config.ini 文件组成:
configuration/
configuration/org.eclipse.equinox.simpleconfigurator
configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
configuration/config.ini
configuration/org.eclipse.update
configuration/org.eclipse.update/platform.xml
After restoring the files, you can start over and execute eclipse from an regular user account.
恢复文件后,您可以重新开始并从普通用户帐户执行 eclipse。
regards.
问候。
回答by Avinash Jagtap
Open /Users/{Your_Dir_Name}/.eclipse
; right click on .eclipse
,then change permission read-only to read and w
.
打开/Users/{Your_Dir_Name}/.eclipse
; 右键单击.eclipse
,然后将权限只读更改为读取和w
。
回答by Daniel Levy
Check if your disk quota was exceeded, I faced the same issue and tried all the suggestions on this thread.
检查您的磁盘配额是否超出,我遇到了同样的问题并尝试了此线程上的所有建议。
Finally, I found out that the disk free space was 0.
最后,我发现磁盘可用空间为0。
Hope that it helped.
希望它有所帮助。
回答by Droj
The eclipse install area should probably be either writeble by you or not. If it is, then it will use that configuration directory. If not, then it will use the configuration directory it creates in your home directory.
eclipse 安装区域可能应该由您编写或不编写。如果是,那么它将使用该配置目录。如果没有,那么它将使用它在您的主目录中创建的配置目录。
If the eclipse install area is writable by you, but its configuration directory is not, then you may get this error.
如果eclipse安装区是你可以写的,但是它的配置目录不是,那么你可能会得到这个错误。
回答by tony gil
Open a terminal window, type: cd /usr/lib/eclipse
打开终端窗口,输入: cd /usr/lib/eclipse
Run Eclipse as superuser/root:
sudo ./eclipse
以超级用户/root 身份运行 Eclipse:
sudo ./eclipse
When you get a prompt asking for WORKSPACE DIRECTORY, change it to you own workspace, rather than root's.
当您收到询问 WORKSPACE DIRECTORY 的提示时,请将其更改为您自己的工作空间,而不是 root 的工作空间。
回答by nosmadar
Or leave it there but make your changes using elevated privileges (sudo). My Eclipse install is in /opt but I did a lot of the work at the command line using sudo and I had to change the Eclipse folder to be owned by root. (and all of the sub folders as well). But it works great.
或者将其留在那里,但使用提升的权限 (sudo) 进行更改。我的 Eclipse 安装在 /opt 中,但我使用 sudo 在命令行上做了很多工作,我不得不将 Eclipse 文件夹更改为由 root 拥有。(以及所有子文件夹)。但效果很好。