Eclipse – unable to install CDT in Eclipse Luna

eclipseeclipse-cdteclipse-luna

I have just downloaded Eclipse Luna in his package Eclipse IDE for Java EE Developers. I want to add Eclipse CDT to program in C/C++ (I know I can download CDT package, but I prefer this way, don't offer that option as an answer please).

When I tried to install it using Marketplace I didn't found Luna version.

If I use Luna update site, that retrieves CDT 8.4.0.201406111759, I got this error:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709

If I use Kepler update site, retrieving CDT 8.3.0.201402142303I, I got this error:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.cdt,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.checkers,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.checkers.ui,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.core,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.core.cxx,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.ui,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.ui.cxx,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core,5.6.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core.linux,5.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core.linux.x86_64,5.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.core,7.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.mi.core,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.mi.ui,6.1.1.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.ui,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.doc.user,5.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf,2.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.gdb,4.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.gdb.ui,2.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.ui,2.4.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.gdb,7.0.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gdb,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.gdb.ui,7.0.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.build,8.3.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.debug,8.3.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.dsf,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.launch,7.1.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.make.core,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.make.ui,7.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.core,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.gnu.ui,8.2.1.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.ui,8.2.1.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.platform,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.ui,5.7.0.201402142303
No repository found containing: binary,org.eclipse.cdt_root,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709

I added Eclipse CDT 8.4 update site (http://download.eclipse.org/tools/cdt/releases/8.4), it retrieves version 8.4.0.201406111759, same version than Luna update site, and obviously error was the same:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709

How can I install Eclipse CDT in my Eclipse Luna instance?

PD: Eclipse forums are not accepting my credentials of Eclipse account, I could not post my question there.

Best Answer

Finally I solved the problem. I was using Oracle Java 6 to execute Eclipse. After upgrading to Oracle Java 8, the installation process executed correctly.

Related Topic