An error occurred while collecting items to be ins

2019-01-16 17:43发布

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 Files\eclipse\plugins\org.jboss.netty_3.2.4.Final-201112281337.jar (Access is denied)

Kindly provide the solution.

Thanks

12条回答
疯言疯语
2楼-- · 2019-01-16 18:19

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:\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.

[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.

查看更多
萌系小妹纸
3楼-- · 2019-01-16 18:19

Changing from https:// to http:// worked for me

查看更多
该账号已被封号
4楼-- · 2019-01-16 18:20

I just solved this problem by unchecking Read only checkbox of the Program Files/eclipse folder on win7.

Apply to all files and folders.

查看更多
贪生不怕死
5楼-- · 2019-01-16 18:22

I solved the problem very easily.

Go to Control Panel -> Network and Sharing Center -> Windows Firewall -> Turn off Windows Firewall

And try to install again and see the magic :)

查看更多
仙女界的扛把子
6楼-- · 2019-01-16 18:24

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.

  1. Click "Help" Menu.
  2. Click "Eclipse Marketplace..." menu item.
  3. Enter the name of the plugin you want.
  4. Click "Install" when the plugin appears in the Marketplace List.
  5. Restart Eclipse.
查看更多
爱情/是我丢掉的垃圾
7楼-- · 2019-01-16 18:28

If there are any proxy networks are configured remove them till plugins are installed

查看更多
登录 后发表回答