How to programmatically update an Eclipse feature and ints plugins - eclipse

How can I programmatically update an Eclipse feature by pointing to a p2 repository?
I can install features using org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher class by setting the application name as org.eclipse.equinox.p2.director. However, this fails when I install a newer version of a feature which already exist in eclipse environment.
Installing sample.student.mgt.feature.group 4.2.1.
Installation failed.
Cannot complete the install because of a conflicting dependency.
Software being installed: sample.student.mgt.feature 4.2.1 (sample.student.mgt.feature.group 4.2.1)
Software currently installed: sample.student.mgt.feature 4.2.0 (sample.student.mgt.feature.group 4.2.0)
Only one of the following can be installed at once:
sample.student.mgt.feature 4.2.1 (sample.student.mgt.feature.jar 4.2.1)
sample.student.mgt.feature 4.2.0 (sample.student.mgt.feature.jar 4.2.0)
Cannot satisfy dependency:
From: sample.student.mgt.feature 4.2.0 (sample.student.mgt.feature.group 4.2.0)
To: sample.student.mgt.feature.jar [4.2.0]
Cannot satisfy dependency:
From: sample.student.mgt.feature 4.2.1 (sample.student.mgt.feature.group 4.2.1)
Any solution for this is appreciated.

Related

Failing to install Gradle IDE Pack 3.8.x+1.0.x on Eclipse 2020-06

whenever I try to install the Gradle IDE Pack 3.8.x+1.0.x+2.2.x on my Eclipse I get following error message:
Cannot complete the install because some dependencies are not satisfiable
Software being installed: a.jre.javase 16.0.0
Software currently installed: BOSH Language Server Feature 4.9.0.202012131915 (org.springframework.tooling.bosh.ls.feature.feature.group 4.9.0.202012131915)
Cannot satisfy dependency:
From: Language Server Protocol client for Eclipse IDE (Incubation) 0.13.4.202011121435 (org.eclipse.lsp4e 0.13.4.202011121435)
To: osgi.ee; (&(osgi.ee=JavaSE)(version=11))
Cannot satisfy dependency:
From: BOSH Language Server Feature 4.9.0.202012131915 (org.springframework.tooling.bosh.ls.feature.feature.group 4.9.0.202012131915)
To: org.eclipse.equinox.p2.iu; org.eclipse.lsp4e 0.0.0
I use Eclipse 2020-06 and Java 8. From what I understand I would need minimum Java 11.
Is there a way to overgo that without using Java 11? We have to stick to Java 8 for now.
Thanks for support.
Upgrading to JDK11 didn't solve the issue (alone at least). The BOSCH Language Server from the Spring Tool Plus-In must be uninstalled as well.

How install older Goclipse version? Cannot install Goclipse 16.1 on Eclipse 4.5.2 (Mars.2)

-Is there a way to install an older version of Goclipse, compatible with my Eclipse 4.5.2?
-Or, is there a way I can manually install the missing dependencies (see below)?
I am using Eclipse 4.5.2 (Mars.2). When trying to install Goclipse, I only see version 16.1 which according to the Goclipse documentation requires Eclipse 4.6 or later.
The error I currently get when trying to install Goclipse 16.1 is:
Cannot complete the install because one or more required items could not be found.
Software being installed: GoClipse 0.16.1.v201607061938 (goclipse_feature.feature.group 0.16.1.v201607061938)
Missing requirement: GDB DSF Debugger Integration Core 5.0.0.201606062011 (org.eclipse.cdt.dsf.gdb 5.0.0.201606062011) requires 'bundle org.eclipse.launchbar.core 2.0.0' but it could not be found
Missing requirement: GDB DSF Debugger Integration Core 5.0.0.201607151550 (org.eclipse.cdt.dsf.gdb 5.0.0.201607151550) requires 'bundle org.eclipse.launchbar.core 2.0.0' but it could not be found
Cannot satisfy dependency:
From: GoClipse Eclipse Debug 0.16.1.v201607061938 (com.googlecode.goclipse.debug 0.16.1.v201607061938)
To: bundle org.eclipse.cdt.dsf.gdb [5.0.0,6.0.0)
Cannot satisfy dependency:
From: GoClipse 0.16.1.v201607061938 (goclipse_feature.feature.group 0.16.1.v201607061938)
To: com.googlecode.goclipse.debug [0.16.1.v201607061938]
Try using this URL as a Eclipse Software Site:
https://raw.githubusercontent.com/GoClipse/goclipse.github.io/0.16.0/releases/
It should allow you to install 0.16.0 (or a diff version if you change the URL)

PHP Dev Tools on Eclipse 3.8 Ubuntu - conflicting dependencies

I am trying to install PHP Development Tools in Eclipse 3.8 on Ubuntu. I have had several failed dependencies and I have managed to track them down and install them, notably as regards mylyn. Then when I installed org.eclipse.mylyn.context_feature.feature.group I get errors that are too complex for me to figure out.
Repository: http://download.eclipse.org/releases/luna
Package: PDT 3.4.0.201....
Here is what Eclipse tells me:
Cannot complete the install because of a conflicting dependency.
Software being installed: PHP Development Tools (PDT) 3.4.0.201502171754 (org.eclipse.php.feature.group 3.4.0.201502171754)
Software currently installed: Eclipse Platform 3.7.0.debbuild (org.eclipse.platform.ide 3.7.0.debbuild)
Only one of the following can be installed at once:
Bidirectional Text Support 0.10.0.v20130327-1442 (org.eclipse.equinox.bidi 0.10.0.v20130327-1442)
Bidirectional Text Support 0.9.0.dist (org.eclipse.equinox.bidi 0.9.0.dist)
Cannot satisfy dependency:
From: PHP Development Tools (PDT) 3.4.0.201502171754 (org.eclipse.php.feature.group 3.4.0.201502171754)
To: org.eclipse.php.ui [3.4.0.201502171754]
Cannot satisfy dependency:
From: PDT UI Plug-in 3.4.0.201502171754 (org.eclipse.php.ui 3.4.0.201502171754)
To: bundle org.eclipse.wst.common.frameworks.ui 0.0.0
Cannot satisfy dependency:
From: Eclipse Platform 3.8.1.dist-A8F8_IVRG4VZSCmeloKVfCrtIFotGyJZcMPL9 (org.eclipse.platform.feature.group 3.8.1.dist-A8F8_IVRG4VZSCmeloKVfCrtIFotGyJZcMPL9)
To: org.eclipse.rcp.feature.group [3.8.1.dist-8LA2GODFTJUDJ21934]
Cannot satisfy dependency:
From: Eclipse Platform 3.7.0.debbuild (org.eclipse.platform.ide 3.7.0.debbuild)
To: org.eclipse.platform.feature.group [3.8.1.dist-A8F8_IVRG4VZSCmeloKVfCrtIFotGyJZcMPL9]
Cannot satisfy dependency:
From: Eclipse RCP 3.8.1.dist-8LA2GODFTJUDJ21934 (org.eclipse.rcp.feature.group 3.8.1.dist-8LA2GODFTJUDJ21934)
To: org.eclipse.equinox.bidi [0.9.0.dist]
Cannot satisfy dependency:
From: WTP UI Plug-in 1.2.300.v201401292051 (org.eclipse.wst.common.frameworks.ui 1.2.300.v201401292051)
To: bundle org.eclipse.equinox.bidi [0.10.0,2.0.0)
Cannot satisfy dependency:
From: WTP UI Plug-in 1.2.300.v201401292115 (org.eclipse.wst.common.frameworks.ui 1.2.300.v201401292115)
To: bundle org.eclipse.equinox.bidi [0.10.0,2.0.0)
Any and all help appreciated.
If you want install eclipse pdt 3.4 on older eclipse releases you should use direct sites instead of simulates release update site:
PDT: http://download.eclipse.org/tools/pdt/updates/3.4 or http://download.eclipse.org/tools/pdt/updates/latest
DLTK 5.1.1: http://download.eclipse.org/technology/dltk/updates-dev/5.1.1/
After that you'll be able to install PDT 3.4 on eclipse 3.8
In the end the problem stemmed from trying to install a lot of stuff on an old version of Eclipse. This in turn stemmed from apt-get repositories that were not up-to-date. So when I tried to update my Eclipse I was told it was the latest version and I believed it, until greg-449 straightened me out.
Since I could not use apt-get or Ubuntu software centre (same thing) to install the latest Eclipse I just removed the installation and downloaded and unzipped Luna in a directory somewhere. I recommend this course of action if you are using Eclipse on Ubuntu.

Can't install EclipseCoder on Kepler

Eclipse Version: Kepler
PyDev Version: 3.1
I can't install EclipseCoder on my Ubuntu 13.04 machine. The installation fails with the following error message:
Cannot complete the install because one or more required items could not be found.
Software currently installed: EclipseCoder Python Support 0.2.2 (net.fornwall.eclipsecoder.pythonsupport.feature.group 0.2.2)
Missing requirement: EclipseCoder Python Support 0.2.2 (net.fornwall.eclipsecoder.pythonsupport 0.2.2) requires 'bundle org.python.pydev [1.3.0,2.0.0)' but it could not be found
Cannot satisfy dependency:
From: EclipseCoder Python Support 0.2.2 (net.fornwall.eclipsecoder.pythonsupport.feature.group 0.2.2)
To: net.fornwall.eclipsecoder.pythonsupport [0.2.2]
OK
I already have PyDev installed from the PyDev update site. Is this plugin only bound to PyDev 1.3/PyDev 2.0. Any idea what's going on?
The PyDev version used in the plug-in was very old - I've updated the python plug-in to use the current PyDev version and pushed it as version 0.2.3 to the update site, so you should be able to install now.

Not able to install VestiGO JPA Query Browser in Eclipse Helios

I am using Eclipse Helios for Java EE Apps.
I am facing problems while installing VESTIGO JPA Query Browser while installation. I am getting the error logs like this ...
Cannot complete the install because one or more required items could not be found.
Software being installed: Vestigo Cumulus4j integration 1.0.1 (org.nightlabs.vestigo.cumulus4j.ui.feature.feature.group 1.0.1)
Missing requirement: org.nightlabs.vestigo.ui 1.0.1 (org.nightlabs.vestigo.ui 1.0.1) requires 'package org.osgi.framework [1.7.0,2.0.0)' but it could not be found
Cannot satisfy dependency:
From: Vestigo Cumulus4j integration 1.0.1 (org.nightlabs.vestigo.cumulus4j.ui.feature.feature.group 1.0.1)
To: org.nightlabs.vestigo.ui.feature.feature.group 1.0.1
Cannot satisfy dependency:
From: Vestigo - JDO JPA Query Browser 1.0.1 (org.nightlabs.vestigo.ui.feature.feature.group 1.0.1)
To: org.nightlabs.vestigo.ui [1.0.1]
And here is the snap of the error ..
Can anyone tell me.. How can I fulfill those required dependency for VESTIGO installation.
From the error message of your installation, Vestigo UI requires 'org.osgi.framework' with version '1.7.0' as prerequisite.
I think the 'org.osgi.framework' has been updated to '1.7.0' in Eclipse Juno. You have to update your Helios to Juno firstly or directly download Juno from eclipse.org then install Vestigo upon it.