Eclispse Install software says “Can not complete t

2020-08-14 10:08发布

问题:

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

回答1:

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



回答2:

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


回答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.



标签: eclipse