jUnit on eclipse Indigo - java

I installed Eclipse IDE for JavaScript Web Developers, Version: Indigo Service Release 1
Build id: 20110916-0149, in 2011 and use it for java development now but can see no menu about jUnit when I right click on a java class.
Actually jUnit appears nowhere in the menus.
After going around forums, I tried to install JDT, as I understood this is where jUnit is contained. But installation failed because of a conflict with something already installed...
Can you help please ?
FRED
Conflict details :
I get : Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse Java Development Tools 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1 (org.eclipse.jdt.feature.group 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1)
Software currently installed: Shared profile 1.0.0.1325791064663 (SharedProfile_epp.package.javascript 1.0.0.1325791064663)
Only one of the following can be installed at once:
Java Development Tools Launching Support 3.5.0.v20090527 (org.eclipse.jdt.launching 3.5.0.v20090527)
Java Development Tools Launching Support 3.6.0.v20110509 (org.eclipse.jdt.launching 3.6.0.v20110509)
Java Development Tools Launching Support 3.6.1.v20110803_r371 (org.eclipse.jdt.launching 3.6.1.v20110803_r371)
Java Development Tools Launching Support 3.5.1.v20100108_r352 (org.eclipse.jdt.launching 3.5.1.v20100108_r352)
Java Development Tools Launching Support 3.6.1.v20111006_r372 (org.eclipse.jdt.launching 3.6.1.v20111006_r372)
Cannot satisfy dependency:
From: Shared profile 1.0.0.1325791064663 (SharedProfile_epp.package.javascript 1.0.0.1325791064663)
To: org.eclipse.jdt.launching [3.6.1.v20110803_r371]
Cannot satisfy dependency:
From: Eclipse Java Development Tools 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1 (org.eclipse.jdt.feature.group 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1)
To: org.eclipse.jdt.launching [3.6.1.v20111006_r372]

This looks pretty odd. Some background:
The plugin "Java Development Tools Launching Support" doesn't like to have different versions of itself installed in Eclipse. Eclipse 3.7.2 comes with version 3.6.1.v20111006_r372.
It seems that you still have old versions from 3.5 and 3.6 installed. Did you upgrade from an old version to 3.7?
Problems like that are usually only solvable by installing Eclipse again. Deleting the plugin on the disk won't help because p2 remembers which plugins are installed and doesn't care whether the plugin still exists. You probably also can't delete the plugin because some other plugin will depend on it.

Related

Eclipse Thym requires 'osgi.bundle; org.eclipse.jgit [3.0.0,5.0.0)' but it could not be found

I am trying to install Eclipse Thym plugin, but I'm getting the below error.
Cannot complete the install because one or more required items could not be found.
Software being installed: Hybrid Mobile Application Development Tools 2.0.0.201604091831 (org.eclipse.thym.feature.feature.group 2.0.0.201604091831)
Missing requirement: Hybrid Mobile App. Dev. Core 2.0.0.201604091831 (org.eclipse.thym.core 2.0.0.201604091831) requires 'osgi.bundle; org.eclipse.jgit [3.0.0,5.0.0)' but it could not be found
Cannot satisfy dependency:
From: Hybrid Mobile Application Development Tools 2.0.0.201604091831 (org.eclipse.thym.feature.feature.group 2.0.0.201604091831)
To: org.eclipse.equinox.p2.iu; org.eclipse.thym.core [2.0.0.201604091831,2.0.0.201604091831]
I dug through multiple forums, but no where it is clear on how to resolve this issue. How to resolve this issue?
My IDE is Eclipse Photon
Regards
You could install it on more recent versions of Eclipse by using the snapshot software repository url, eq. http://download.eclipse.org/thym/snapshots/
It looks like Eclipse Thym is not compatible with Eclipse Photon.
The key part of the error is
requires 'osgi.bundle; org.eclipse.jgit [3.0.0,5.0.0)'
which says that the org.eclipse.jgit plugin is required and must have a version of at least 3.0.0 and less than 5.0.0. The version of this plugin in Eclipse Photon is 5.0.0 so it is not compatible.
So it looks like you would have to use an older version of Eclipse to run this.

In Eclipse 4.4 RCP builds, "The service Plugin converter could not be acquired."

We began getting the build errors below for our RCP applications after updating to the recent Eclipse 4.4 IDE Eclipse for RCP and RAP developers. These occurred on multiple Windows and Mac platforms, in a vanilla Eclipse IDE install with no additional plug-ins.
generateFeature:
[eclipse.generateFeature] The service Plugin converter could not be acquired.
[eclipse.generateFeature] The service Plugin converter could not be acquired.
[eclipse.generateFeature] The service Plugin converter could not be acquired.
...
Builds in an Eclipse 4.3.2 IDE continue to succeed. The only thing that differs is the IDE. (The build is launched with "Run in the same JRE as the workspace", making the current IDE relevant.)
Googling for "Plugin converter could not be acquired" resulted in two links, neither of which was particularly helpful.
How can these errors be eliminated?
This took me awhile to track down. This answer is for the benefit of others.
Eclipse 4.4 removed built-in support for Eclipse 2.0 plug-ins without an OSGi bundle manifest. This is intended to encourage migration to OSGi bundles.
Migrating to OSGi bundles is the best approach.
Alternatively, a compatibility plug-in can be added to the IDE. To install it:
Help>Install New Software
Select the site The Eclipse Project Updates - http://download.eclipse.org/eclipse/updates/4.4
Expand the category Eclipse Tests, Examples, and Extras.
Check the item Eclipse 2.0 Style Plugin Support
Continue through the rest of the wizard.
References:
Eclipse 4.4 Plug-in Migration Guide, Incompatibilities between Eclipse 4.3 and 4.4: Removed built-in support for Eclipse 2.0 Plug-ins
Eclipse bugs:
Bug 407312 - Remove support for 2.0 old style plugin support
Bug 413006 - add org.eclipse.osgi.compatibility.plugins.feature to a Luna category
Bug 440156 - Identify 2.0-style plug-ins

Trying to install eclipse Bytecode Outline plugin, missing dependency

I'm trying to install this: http://asm.ow2.org/eclipse/index.html, but I get this error which makes zero sense to me.
I'm running eclipse Kepler Service Release 1, build id 20130919-0819.
Cannot complete the install because one or more required items could not be found.
Software being installed: Bytecode Outline 2.1.0 (de.loskutov.BytecodeOutline.feature.feature.group 2.1.0)
Missing requirement: Bytecode Outline 2.1.0 (de.loskutov.BytecodeOutline.feature.feature.group 2.1.0) requires 'org.eclipse.help.appserver 0.0.0' but it could not be found
After Eclipse 3.3 "org.eclipse.help.appserver" was removed. See: eclipse:help-appserver
Description: This bundle provided implementation of a Tomcat-based web server application for the Eclipse help system. This was replaced in Eclipse 3.3 with a Jetty-based application server. This bundle defines no API and has been unused in the Eclipse platform for many releases.
It seems that the Eclipse ASM Bytecode Outline plugin was not maintained for quite some time which results in all kind of compatibility problems. For newer versions of Eclipse I therefore recommend installing this alternate version instead.
Use the Eclipse marketplace to find a version for the current eclipse version.

Installing EGit on eclipse causes problems

I've tried installing the EGit plugin on Eclipse with this link: http://download.eclipse.org/egit/updates
I chose both, the Eclipse Git Team Provider and JGit and hit on next. Then, the window says The operation cannot be completed. See the details..
This is the window:
The error lines say:
Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse Git Team Provider 3.0.3.201309161630-r (org.eclipse.egit.feature.group 3.0.3.201309161630-r)
Software currently installed: Eclipse SDK 3.7.2.M20120208-0800 (org.eclipse.sdk.ide 3.7.2.M20120208-0800)
Only one of the following can be installed at once:
Team Support Core 3.7.0.v20130514-1224 (org.eclipse.team.core 3.7.0.v20130514-1224)
Team Support Core 3.5.0.I20090527-0620 (org.eclipse.team.core 3.5.0.I20090527-0620)
Team Support Core 3.5.1.r35x_20100113-0800 (org.eclipse.team.core 3.5.1.r35x_20100113-0800)
Team Support Core 3.6.0.I20110525-0800 (org.eclipse.team.core 3.6.0.I20110525-0800)
Cannot satisfy dependency:
From: Eclipse Git Team Provider 3.0.3.201309161630-r (org.eclipse.egit.feature.group 3.0.3.201309161630-r)
To: org.eclipse.egit.ui [3.0.3.201309161630-r]
Cannot satisfy dependency:
From: Git Team Provider UI 3.0.3.201309161630-r (org.eclipse.egit.ui 3.0.3.201309161630-r)
To: bundle org.eclipse.team.core [3.6.100,4.0.0)
Cannot satisfy dependency:
From: Eclipse Platform 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q (org.eclipse.platform.feature.group 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q)
To: org.eclipse.team.core [3.6.0.I20110525-0800]
Cannot satisfy dependency:
From: Eclipse Project SDK 3.7.2.r37x_v20111213-7Q7xALDPb32vCjY6UACVPdFTz-icPtJkUadz0lMmk4z-8 (org.eclipse.sdk.feature.group 3.7.2.r37x_v20111213-7Q7xALDPb32vCjY6UACVPdFTz-icPtJkUadz0lMmk4z-8)
To: org.eclipse.platform.feature.group [3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q]
Cannot satisfy dependency:
From: Eclipse SDK 3.7.2.M20120208-0800 (org.eclipse.sdk.ide 3.7.2.M20120208-0800)
To: org.eclipse.sdk.feature.group [3.7.2.r37x_v20111213-7Q7xALDPb32vCjY6UACVPdFTz-icPtJkUadz0lMmk4z-8]
I really don't know what is going on, but I want to get this to work so badly. Thanks in advance for everyone's support!
From the error message it looks like you are using Eclipse 3.7 (which is about 2 years old at the time of writing this answer).
EGit 3.0 requires at least Eclipse 3.8.2 or Eclipse 4.2.2, see What versions of Eclipse does EGit target? in the FAQ.
So the solution is to upgrade to a recent version of Eclipse, see Eclipse downloads.
Alternatively, if you need to stick to Eclipse 3.7.2 for some reason, you can use EGit version 1.3. This is the best update site to use in that case: eclipse indigo update site. If you filter by "git" you will get the correct plugins to install.

Eclipse plugin installation/update issues

I've installed the following Team repository plugins (along with it's dependencies) for Eclipse Helios (using Eclipse updater).
MercurialEclipse 1.7.1
Subclipse 1.6.17
Subversive SVN
All of these are the latest in Eclipse Marketplace. My problem is when I go to Eclipse "Preferences", under "Team" I only see CVS but under Eclipse Marketplace, I can see that these plugins are installed (it gives me an option to uninstall it).
How do I configure my Team repositories to reflect under "Team" in Preferences?
Also, there is an update for "Eclipse IDE for Java EE developers, but when I try to update it, the following error occurs:
Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse IDE for Java EE Developers 1.3.2.20110301-1807 (epp.package.jee 1.3.2.20110301-1807)
Software currently installed: Shared profile 1.0.0.1276787175574 (SharedProfile_epp.package.jee 1.0.0.1276787175574)
Only one of the following can be installed at once:
toolingepp.package.jee.configuration 1.3.2.20110301-1807
toolingepp.package.jee.configuration 1.3.0.20100617-0521
Cannot satisfy dependency:
From: Shared profile 1.0.0.1276787175574 (SharedProfile_epp.package.jee 1.0.0.1276787175574)
To: toolingepp.package.jee.configuration [1.3.0.20100617-0521]
Cannot satisfy dependency:
From: Eclipse IDE for Java EE Developers 1.3.2.20110301-1807 (epp.package.jee 1.3.2.20110301-1807)
To: toolingepp.package.jee.configuration [1.3.2.20110301-1807]
How do I solve it? Yes, I've spent days Googling for this issue but none solved my problem.
Thanks in advance.
For the first question, if you go to Help -> About -> Installation Details -> plug-ins tab do you see, eg for Subversive:
Are you doing this on a Windows 7 machine? Try running Eclipse as an administrator and then do the update.
Answering the second point of your question. Try executing eclipse as root/Administrator.
I had the same problem and I solved it.

Categories

Resources