Issue with updating eclipse - eclipse

When I select "Help->Check for Updates" in eclipse, I get the following error message at the bottom of the window. From this message "Only one of the following can be installed at once: " it appears I have multiple copies of the same component installed. Under "About Eclipse SDK=>Installation Details" I found at least two instances of Equinox P2 Provisioning: under "Eclipse SDK" and "PHP Development Tools".
Any suggestions on how to get this resolved would be much appreciated.
I'm running eclipse helios 3.6.1 on CentOS 5.2.
Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse SDK 3.6.2.M20110210-1200 (org.eclipse.sdk.ide 3.6.2.M20110210-1200)
Software currently installed: Shared profile 1.0.0.1288623084982 (SharedProfile_SDKProfile 1.0.0.1288623084982)
Only one of the following can be installed at once:
Equinox p2 Provisioning 2.0.1.r361_v20100903-897HFZFFZRuSD2LMtVxyz0Vr (org.eclipse.equinox.p2.user.ui.feature.jar 2.0.1.r361_v20100903-897HFZFFZRuSD2LMtVxyz0Vr)
Equinox p2 Provisioning 2.0.0.v20100503-897HFZ-FdHjO2NQo0sD_Nt (org.eclipse.equinox.p2.user.ui.feature.jar 2.0.0.v20100503-897HFZ-FdHjO2NQo0sD_Nt)
Equinox p2 Provisioning 2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628 (org.eclipse.equinox.p2.user.ui.feature.jar 2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628)
Cannot satisfy dependency:
From: Shared profile 1.0.0.1288623084982 (SharedProfile_SDKProfile 1.0.0.1288623084982)
To: org.eclipse.equinox.p2.user.ui.feature.jar [2.0.1.r361_v20100903-897HFZFFZRuSD2LMtVxyz0Vr]
Cannot satisfy dependency:
From: Equinox p2 Provisioning 2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628 (org.eclipse.equinox.p2.user.ui.feature.group 2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628)
To: org.eclipse.equinox.p2.user.ui.feature.jar [2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628]
Cannot satisfy dependency:
From: Eclipse SDK 3.6.2.M20110210-1200 (org.eclipse.sdk.ide 3.6.2.M20110210-1200)
To: org.eclipse.equinox.p2.user.ui.feature.group [2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628]
Update 9/15: I read somewhere that this may be due to a permissions issue and that I should run eclipse as root and perform the update. I was indeed able to complete the 3.6.2 SDK update as root but then afterwards all of my add-on components (e.g. subclipse, PDT, etc.) were gone.

You are getting this message because you are trying to install into a read-only (shared) location. The indication is at this line:
Software currently installed: Shared profile 1.0.0.1288623084982 (SharedProfile_SDKProfile 1.0.0.1288623084982)
The reason why there is a failure is that your install plan would remove an old version of a feature that is part of the shared install. Since a shared install cannot be changed, you get the conflicting dependency.
As it happens, I am working on a patch for exactly this bug. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332158
The fix would not allow you to install in this situation, but it would at least provide a better error message for you.

I got this message or something similar because I had installed Eclipse to my C: drive on Windows 7. Trying to do an update required escalation but Eclipse wasn't prompting me. When I restarted Eclipse using "Run as Administrator", it had the proper permissions to continue and it let me upgrade.

Cannot satisfy dependency:
From: Eclipse SDK 3.6.2.M20110210-1200
It needs a dependency that only exists in the update site for Helios 3.6.2 and you are running 3.6.1. You can either upgrade to the latest version of Helios (or better yet, Indigo) or add the update sites. I don't know the URL's off the top of my head, but you can try this method:
Download a fresh copy of Helios and install it to a separate folder. Open up help>install new software and click "available software sites". Then export the default sites and import them into your existing Eclipse installation. Your plugins should now update correctly.
EDIT: add this to your update sites: http://download.eclipse.org/eclipse/updates/3.6/

Note that shared install have now (upcoming Eclipse 4.3, 2013) a way to:
Detect shared install changes:
When Eclipse is running in a read-only folder (also known as shared install) and the read-only installation has changed (e.g. new plugins installed, new version of Eclipse installed), Eclipse will now detect this change and warn that your personal additional plugins have been uninstalled.
Provide a Migration Wizard:
Eclipse now includes a migration wizard to help users through the re-ininstallation of their plug-ins.
This wizard is presented in two situations.
First, when a read-only installation of Eclipse is being changed (i.e. Eclipse is being updated or plugins are added / remove),
second when a new read-only installation of Eclipse is run for the first time.
See also "Shared installs just got better!" for more:
Building on this support, we've also decided to assist users in re-importing their plug-ins from a previous read-only installation.
The reason is simple, many corporations chose to deploy new versions of Eclipse in different folders. This is required to give teams the ability to adopt Eclipse at their own pace, but it also means that when users start using a new Eclipse install, they need to re-install the plug-ins they had installed on their own.
Of course users could use the import/export feature provided by p2, but the time wasted by the user wondering why the plug-ins have vanished and then figuring out what to re-install can be significant, which is why in such situation we are also presenting the migration wizard.

Related

How to update Eclipse from 2018-09 to 2018-12

I have Eclipse 2018-09. My impressions was that Eclipse was moving to a rolling quarterly release, and by that I presumed I'd magically be offered updates every quarter to the newest. But now that 2018-12 is out, my instance does not detect any new updates.
Looking at the update sites in Windows -> Preferences, Install/Update -> Available Software Sites (incompletely listed below), I notice they seemed to be pinned to specific versions:
The Eclipse Project Updates: http://download.eclipse.org/eclipse/updates/4.9
The Eclipse Project Updates: http://download.eclipse.org/eclipse/updates/4.9/categories
Eclipse Project Repository for 2018-09: http://download.eclipse.org/eclipse/updates/4.9/R-4.9-201809060745
2018-09: http://download.eclipse.org/releases/2018-09
Oracle Enterprise Pack for Eclipse 12.2.1.8 Dependencies: http://download.oracle.com/otn_software/oepe/12.2.1.8/oxygen/repository/dependencies/
I've noticed there is also now an Eclipse Installer, which says it is "The easiest way to install and update your Eclipse Development Environment.". However, there is no description of updating, and when running it and pointing to the existing folder for 2018-09 (yes, I made a backup first to be safe), it does not update that folder but instead just creates a new sub-folder under the existing 2018-09 version called "eclipse" with presumably a complete copy of the new eclipse. So that's a failed attempt.
What is the recommended way of upgrading from 2018-09 to 2018-12? Is it:
Manually download a new copy of Eclipse and spend hours configuring it to hopefully be almost the same as the configurations in 2018-09
Run the Eclipse installer in some other manner than I already have.
Manually updating the update sites (to what values?). If the so, is there a way to specify to always use the latest on the update train?
Other?
See Eclipse FAQ - Always enable major upgrades:
To always enable major upgrades of your IDE once and for all:
from the Available Software Sites preference page
enable the Latest Eclipse release http://download.eclipse.org/releases/latest repository by ticking the checkbox.
Apply and Close
Check for updates
The similar workflow can be used to hide and disable automatic
proposal of major upgrades.
To my knowledge, the update site http://download.eclipse.org/releases/latest exists since Eclipse Photon (4.8) in Window > Preferences: Install/Update > Available Software Sites but is not checked by default.
If you want to change the default of this preference, vote for or comment on Eclipse bug 539281 - Enable http://download.eclipse.org/releases/latest by default.
The two advantages of using the Eclipse Installer over the direct installation of one or more IDE packages are:
The Eclipse Installer saves disk space when installing multiple IDE packages (by using a shared pool for the plug-ins of all IDE packages)
The Eclipse Installer makes it easier to contribute to an Eclipse project (advanced mode).
Another way to install Eclipse 2018-12 is to use Chocolatey on Windows. Eclipse 2018-12 corresponds to version 4.10.
PS C:> choco list eclipse
Chocolatey v0.10.11
eclipse 4.10 [Approved]
...
PS C:> choco install eclipse
...
But this won't do an in-place upgrade.
Go to Window-> Preferences -> Install/Update -> Available Software Sites
First, if exists remove duplicate sites
Second, click to eclipse related update sites and Reload

Installing custom plugin on a clean Eclipse

I'm trying to install my custom Eclipse plugin, which works perfectly when launched from the manifest file, onto a clean installation of Eclipse. I've installed the necessary dependencies (GEF and Zest) manually using their update sites. However, the plugin still doesn't show up. I googled around a lot and found a site suggesting I open eclipse with -debug -consoleLog and revealed the following:
Edit: here's a screenshot of my entire log:
"PowerPlugin" is my custom plugin.
I've checked, and my plugin specifies these dependencies with a minimum version number, and I have installed Zest 1.3.0, Draw2D 3.7.2, and the GEF "All-In-One" SDK 3.7.2, which should satisfy these dependencies, I believe.
Any clue what's wrong?
I would suggest using just indigo update site http://download.eclipse.org/releases/indigo and installing all required dependencies like gef and zest from there (assuming that you use indigo as a baseline?). This update site (actually it is now called a "software site" or repository) contains all required dependencies and they will be installed if needed.
When you using Help>Install new software... p2 provisioning system is used and it will make sure that all required dependencies are satisfied before it starts installing anything.
[Updated bellow]
The problem then is with a dropin mechanism. I found it very unreliable. Would be much better if you could install your plug-in using the standard p2 mechanism (by using software site aka p2 repository) that is:
Please create a feature project.
Add your plug-in (plug-ins) to the newly created feature.
Export the feature ("Export Wizard" link on feature.xml editor). Choose directory destination and on Options tab make sure that "Generate Metadata Repository" is selected (this will spare you the time to create UpdateSite project although you could do that if you want more flexibility later).
In your exported forlder your should have: feature, plugins folders and also artifacts.jar and conten.jar with p2 metadata.
In your destination eclipse go to Help>Install New Software... then Add... and Local... and browse to the folder from point 4.
You should see the feature to install in the list (if not please deselect "Group items by category") and then follow the wizard to install your featrue.
If you want to install on the same host you are running then you can use "Install Into host Repository" in point 3.
See also:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fexport_wizards%2Fexport_features.htm

EclipseFP on Indigo, issues with Maven?

I'm trying to install EclipseFP, using the usual Eclipse "Install new software" approach. However, at the "Installation Details" window, it says "This operation cannot be completed", giving me the following details:
Cannot complete the install because one or more required items could not be found.
Software currently installed: Shared profile 1.0.0.1316138547364
(SharedProfile_epp.package.java 1.0.0.1316138547364)
Missing requirement: Shared profile 1.0.0.1316138547364
(SharedProfile_epp.package.java 1.0.0.1316138547364)
requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]'
but it could not be found
I just barely downloaded a fresh Eclipse:
Eclipse IDE for Java Developers
Version: Indigo Service Release 1
Build id: 20110916-0149
Does EclipseFP actually work on Indigo? Do I need to download an older Eclipse? Or perhaps there are additional steps I need to take to install Maven? (I don't want to download/install Maven if I don't have to.)
Since Kane neglected to turn his comment into an answer, I may as well state it plainly here:
This issue arises when you put the Eclipse folder in a location where Windows will have issues with access control (e.g. the Program Files folder). By moving the folder to my personal user's folder, I was able to use Eclipse normally without this issue.

Eclipse Helios for RCP and RAD developers won't update to 3.6.2

I got a strange behavior with an Eclipse installation:
Even though all update sites are there and accessible, and even though I can SEE in "Install New Software" dialog that there is the new Eclipse Platform 3.6.2.M20110210-1200 I cannot get it installed! Of course it says here that the original request has been modified:
Your original request has been modified.
"Eclipse Platform" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse Platform 3.6.2.M20110210-1200 (org.eclipse.platform.ide 3.6.2.M20110210-1200)
Software currently installed: Eclipse for RCP and RAP Developers 1.3.1.20100916-1202 (epp.package.rcp 1.3.1.20100916-1202)
Only one of the following can be installed at once:
But when I invoke "Check for Updates" it simply says "No updates were found."
Why?? How can I get it to the latest platform release?
Thanks!
If I understand the comments on this bug report correctly, the update or parts of it have currently been disabled because of an issue when updating Eclipse on Mac OS X. It seems you/we (I'm having a similar problem) can either wait for a bit or try using the update site mentioned in the comments:
http://download.eclipse.org/technology/epp/packages/helios/SR2.fixed
I haven't tried this myself, though.
Eclipse is distributed by different packages, such as classic, SDK, CDT and Eclipse for RCP and RAP Developers that one already installed or downloaded by you.
Eclipse platform is a part of those distribution, so you can installed it again.
You could enable/add the software repository(http://download.eclipse.org/releases/helios) in your eclipse, then let it check the update. It should find the proper updates for you.

Installing Eclipse

I am installing Eclipse for RCP and RAP Developers. My old copy went rogue and decided to act up.
So clean install time! Yay! I downloaded the new version, copied it to the opt folder, extracted it, and ran it.
For some reason, I can't install any plugins due to some crap error*, and it doesn't have a list of default plugins. I deleted my workspace and the original Eclipse install.
Is there another file that is helping Eclipse keep data from previous installs? I am seeing update sites I added when I was constantly trying to get past this issue.
Also, why can't I install new plugins?
I need a clean install so I can't use the Ubuntu installer.
Any tips are appreciated.
*Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for Eclipse (Required) 0.10.2.20100623-1649 (org.maven.ide.eclipse.feature.feature.group 0.10.2.20100623-1649)
Missing requirement: Maven Integration for Eclipse (Editors) 0.10.2.20100623-1649 (org.maven.ide.eclipse.editor 0.10.2.20100623-1649) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Maven Integration for Eclipse (Required) 0.10.2.20100623-1649 (org.maven.ide.eclipse.feature.feature.group 0.10.2.20100623-1649)
To: org.maven.ide.eclipse.editor [0.10.2.20100623-1649]
I had the same problem when doing a fresh install of Java EE eclipse (helios, galileo, win32 and win64).
The solution for me was to explicitly open the Java perspective, and doing the install after this. This time the installation worked fine.
I suspect the reason is that after a fresh install not all bundles are loaded (although they are present on disk; a feature of eclipse) so that the dependencies cannot be resolved. Opening the Java perspective or creating a dummy Java project will force to load these bundles. Once a bundle is loaded, its existence is persisted, so this only has to happen once.
This issue was mentioned a number of time on the official websites, but always closed or neglected, probably because the reproducer did not do a fresh install.
Download Eclipse 2018-19 (4.9.0) version as an updated eclipse version and install it! Maven dependency will presented inbuild thing in that model, Right click on project -> properties -> on left pane, Maven will display ! Change your setting there to overcome this error and you can add external JAR'S there