12

I am using Eclipse Luna Service Release 1 (4.4.1) When I try to install new software It gives some error message like Cannot complete the request. This installation has not been configured properly for Software Updates. And my error log says

eclipse.buildId=4.4.1.M20140925-0400
java.version=1.7.0_75
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IN
Framework arguments:  -product org.eclipse.epp.package.standard.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.standard.product

org.eclipse.equinox.p2.ui.sdk
Warning
Mon May 11 14:35:07 IST 2015
Could not locate the running profile instance. The eclipse.p2.data.area and eclipse.p2.profile properties may not be set correctly in this application's config.ini file.

I came across similar problems in How to enable Software Update in an Eclipse product? and Getting the message "Cannot start the update ui..." when trying to run the update UI in Eclipse but it didnot solve my problem

Community
  • 1
  • 1

3 Answers3

8

I hit this same error (Eclipse Mars). Shutting down all Eclipse instances and starting with eclipse.exe -clean fixed it.

Jay G
  • 167
  • 1
  • 6
6

Bug 378568 mentions:

Looks like the configuration of your eclipse is damaged.

Check the value of 'eclipse.p2.profile' and 'eclipse.p2.data.area' in config.ini, then check whether the specified profile can be found from path 'eclipse.p2.data.area'.

<eclipse.p2.data.area>\org.eclipse.equinox.p2.engine\profile‌​Registry

Removing those files (in the folder eclipse.p2.data.area) and relaunching Eclipse should help fix the issue.
Although FaithReaper mentions in the comments:

Removing the eclipse.p2.data.area folder prevents Eclipse from launching.
In my case it is C:\Users\<my.user.name>\.p2

The discussion mentions the error:

An internal error occurred during: 
"Loading bundle: 
  /eclipse/configuration/org.eclipse.osgi/1304/0/.cp/bundles/php.ruble". 
org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 
  cannot be cast to java.lang.String

This is mentioned in this answer (and this one) as a patch to be applied (see bug 445122: ClassCastException received when System.getProperties().store() runs on 4.4.1)

Just add the following lines to eclipse.ini:

-Dorg.eclipse.swt.browser.IEVersion=10001
-Dosgi.configuration.area.default=null
-Dosgi.user.area.default=null
-Dosgi.user.area=@user.home
-Dosgi.instance.area.default=null
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I get something like `An internal error occurred during: "Loading bundle: /eclipse/configuration/org.eclipse.osgi/1304/0/.cp/bundles/php.ruble". org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String` –  May 11 '15 at 11:13
  • @Goutam what is the path mentioned by `eclipse.p2.data.area` in the `config.ini`? – VonC May 11 '15 at 11:26
  • @Goutam in that folder, do you see the file pointed out by the `eclipse.p2.profile` key from the `eclipse.ini`? – VonC May 11 '15 at 11:31
  • There is a folder org.eclipse.equinox.p2.engine which contains an empty directory named profileRegistry –  May 11 '15 at 11:34
  • 1
    @Goutam for testing, can you try an `eclipse -clean` (http://stackoverflow.com/a/2030106/6309) and then try to add your lpugin again? – VonC May 11 '15 at 11:37
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/77511/discussion-between-goutam-and-vonc). –  May 11 '15 at 11:37
  • `-clean` helped me – Dickens A S Jul 20 '16 at 03:46
  • We should note that the file containing the key `eclipse.p2.data.area` is `/configuration/config.ini`. It took me awhile to find it. – WesternGun Jul 24 '17 at 21:17
  • @FaithReaper Thank you. I have included your comment in the answer for more visibility. – VonC Jul 24 '17 at 21:25
  • 1
    And another thing is, "then check whether the specified profile can be found from path `eclipse.p2.data.area` " may cause some confusion... the profile is under `\org.eclipse.equinox.p2.engine\profileRegistry` – WesternGun Jul 25 '17 at 07:46
  • @FaithReaper Thank you again. I have included the path, but if you see a way to make this section clearer, don't hesitate to edit it yourself: I will approve your edit. – VonC Jul 25 '17 at 07:48
  • That's enough for now. Thanks for adding my comments to make it clear. Not everyone appreciate their valid answer like you... my thanks to you. – WesternGun Jul 25 '17 at 07:51
-3

It worked when I put the full eclipse folder (containing the executable) at the root of the harddrive like :

C:\eclipse

Same for the workspace.

  • 1
    Non-detailed explanations, tips or ideas should instead be placed in comments. –  Jul 07 '16 at 15:24