An error occurred while collecting items to be installed (Access is denied)(收集要安装的项目时出错(访问被拒绝))
问题描述
当我尝试从 Eclipse 安装升级时,我收到下面给出的错误,它就像中途一样然后抛出错误.
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.
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 Fileseclipsepluginsorg.jboss.netty_3.2.4.Final-201112281337.jar (Access is denied)
请提供解决方案.
谢谢
推荐答案
在 Windows 7 上,Program Files 目录受到保护,因此应用程序无法自动写入该目录.我听说过的最简单的解决方案就是将 Eclipse 安装到 user-writable 位置.例如,C:JavaEclipse
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-writable location instead. For example, C:JavaEclipse
您应该能够移动整个 eclipse 目录,没有任何注册表项或任何其他将 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.
您是否检查过它抱怨的目录我实际上是可写的?除此之外,我真的没有任何想法.我已经好几年没有在 Windows 上工作过,也从未使用过 Win7.我唯一的其他建议是下载最新的 Eclipse,将其安装到新位置(不要将其安装在现有 Eclipse 之上),然后将其指向现有工作区.
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.
这篇关于收集要安装的项目时出错(访问被拒绝)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:收集要安装的项目时出错(访问被拒绝)


- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01