55

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

Balwant Kumar Singh
  • 1,158
  • 4
  • 24
  • 48
Nick Kahn
  • 19,652
  • 91
  • 275
  • 406

12 Answers12

79

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.

Edwin landwealths
  • 791
  • 1
  • 5
  • 3
  • 4
    My ADT bundle from the Android Developer Site had the "http" version of the URL preset. I had to add another one and paste in the URL with "https" to get it to work. – Ben Jakuben Mar 18 '13 at 17:00
  • Replacing http for https worked for me! Wasted couple of hours on this problem. Thanks for the answer! – MSquare May 27 '13 at 12:38
  • 4
    Thanks! This worked great! `Go to Help -> Install New Software -> Click "Available Software Sites" link -> Select "Android Developer Tools Update Site" -> Click "Edit" Button -> Change the http:// in "Location" text box to "https://".` – Ranhiru Jude Cooray Sep 24 '13 at 04:26
  • Thanks man , btw did u guys encounter any problems after updated? – gjman2 Jun 25 '14 at 14:05
24

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.

Mohammad Faisal
  • 5,783
  • 15
  • 70
  • 117
E-Riz
  • 31,431
  • 9
  • 97
  • 134
  • 3
    same thing i moved to new location and here is the error message `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:/JAVA/eclipse/. C:\JAVA\eclipse\plugins\org.jboss.netty_3.2.4.Final-201112281337.jar (Access is denied)` – Nick Kahn Mar 06 '12 at 04:44
12

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

Apply to all files and folders.

Mohammad Faisal
  • 5,783
  • 15
  • 70
  • 117
Nukium
  • 146
  • 1
  • 4
  • There was no "Unable to write to repository: file:/C:/Program%20Files/eclipse/" message during the installation in my case. But I after `unchecked Read Only`on Eclipse folder, I was able to install a plugin (Weblogic server). – mzy Oct 08 '15 at 14:03
5

I had also the ADT Bundle that had the HTTP as update url. Changing it to HTTPS solved the problem for me.

Yoraco Gonzales
  • 727
  • 10
  • 18
4

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

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.

suomi-dev
  • 848
  • 1
  • 13
  • 22
1

I got this error on my ubuntu box until I ran eclipse as root and installed from there:

$ gksudo eclipse

Eclipse was trying to download the packages to /usr/lib/* where I don't have write permissions

vitriolix
  • 351
  • 3
  • 9
1

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

Daniel Shalev
  • 331
  • 3
  • 10
0

Installig Eclispe ADT from market place solved this problem for me.

Tristate
  • 1,498
  • 2
  • 18
  • 38
0

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 :)

Faruk Omar
  • 1,173
  • 2
  • 14
  • 22
0

In my case I entered:

Error Log - found "An error occurred while collecting items to be installed" - right click and select "Open Log". From there I know what goues wrong(in my case PMD). I solve the problem in one project and all works ok.

SkorpEN
  • 2,491
  • 1
  • 22
  • 28
0

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