eclipse 收集要安装的项目时出错(拒绝访问)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9544071/
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
An error occurred while collecting items to be installed (Access is denied)
提问by Nick Kahn
I'm getting the error given below when I try to install the upgrade from Eclipse and it goes like half way and then throw the error.
当我尝试从 Eclipse 安装升级时,我收到下面给出的错误,它进行到一半然后抛出错误。
An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to write to repository: file:/C:/Program%20Files/eclipse/.
C:\Program Files\eclipse\plugins\org.jboss.netty_3.2.4.Final-201112281337.jar (Access is denied)
Kindly provide the solution.
请提供解决方案。
Thanks
谢谢
采纳答案by E-Riz
On Windows 7, the Program Files directory is protected so apps can't automatically write there. The simplest solution I've heard is just to install Eclipse into a user-writablelocation instead. For example, C:\Java\Eclipse
在 Windows 7 上,Program Files 目录受到保护,因此应用程序无法在那里自动写入。我听说过的最简单的解决方案是将 Eclipse 安装到用户可写的位置。例如,C:\Java\Eclipse
You should be able to just move your entire eclipse directory, there's no registry entries or anything else that ties Eclipse to the place where you extracted it.
您应该能够移动整个 eclipse 目录,没有注册表项或任何其他东西将 Eclipse 与您提取它的位置联系起来。
[Edit] Have you checked that the directory it is complaining about i actually writable? Other than that, I really don't have any ideas. I haven't worked on Windows in several years and never with Win7. My only other suggestion is to just download the latest Eclipse, install it to a new location (do NOT intall it over top of your existing Eclipse), and point it to your existing workspace.
[编辑] 你有没有检查过它抱怨的目录我实际上是可写的?除此之外,我真的没有任何想法。我已经好几年没有在 Windows 上工作了,也从未在 Win7 上工作过。我唯一的其他建议是只下载最新的 Eclipse,将其安装到新位置(不要将其安装在现有 Eclipse 之上),然后将其指向现有工作区。
回答by Edwin landwealths
If you have problems using the location: http://dl-ssl.google.com/android/eclipse/, try editing the location by replacing "http" with "https" or the other way round.
如果您在使用位置时遇到问题:http://dl-ssl.google.com/android/eclipse/,请尝试通过将“http”替换为“https”或相反的方式来编辑位置。
回答by Nukium
I just solved this problem by unchecking Read only
checkbox of the Program Files/eclipse
folder on win7.
我刚刚通过取消Read only
选中Program Files/eclipse
win7 上文件夹的复选框解决了这个问题。
Apply to all files and folders.
适用于所有文件和文件夹。
回答by Yoraco Gonzales
I had also the ADT Bundle that had the HTTP as update url. Changing it to HTTPSsolved the problem for me.
我还有一个 ADT Bundle,它有 HTTP 作为更新 url。将其更改为HTTPS解决了我的问题。
回答by Yoraco Gonzales
None of the above worked for me.
以上都不适合我。
Instead, I tried installing the plugins I needed via the Eclipse Market Place, and that worked without issue.
相反,我尝试通过 Eclipse Market Place 安装我需要的插件,并且没有问题。
- Click "Help" Menu.
- Click "Eclipse Marketplace..." menu item.
- Enter the name of the plugin you want.
- Click "Install" when the plugin appears in the Marketplace List.
- Restart Eclipse.
- 单击“帮助”菜单。
- 单击“Eclipse Marketplace...”菜单项。
- 输入您想要的插件名称。
- 当插件出现在市场列表中时,单击“安装”。
- 重新启动 Eclipse。
回答by vitriolix
I got this error on my ubuntu box until I ran eclipse as root and installed from there:
在我以 root 身份运行 eclipse 并从那里安装之前,我在 ubuntu 机器上遇到了这个错误:
$ gksudo eclipse
$ gksudo 日食
Eclipse was trying to download the packages to /usr/lib/* where I don't have write permissions
Eclipse 试图将软件包下载到我没有写权限的 /usr/lib/*
回答by Daniel Shalev
Changing from https:// to http:// worked for me
从 https:// 更改为 http:// 对我有用
回答by suomi-dev
if you do not wish to change the eclipse directory, then start eclipse as administrator (right click run as administrator) and install the feature again. it worked for me.
如果您不想更改 eclipse 目录,请以管理员身份启动 eclipse(右键单击以管理员身份运行)并再次安装该功能。它对我有用。
回答by Mahender Reddy Yasa
If there are any proxy networks are configured remove them till plugins are installed
如果配置了任何代理网络,请删除它们,直到安装插件
回答by Tristate
Installig Eclispe ADT from market place solved this problem for me.
来自市场的 Installig Eclispe ADT 为我解决了这个问题。