Juno SR1 can't launch CDT projects anmore - eclipse-cdt

I just updated to Juno SR1 and CDT Version: 8.1.1. and now I cannot launch (run or debug) any CDT project anymore.
The error I get: Unable to launch. The selection cannot be launched and there are no recent launches.
To be sure I just added a new "Hello World C++" project. Compiles fine, cannot be launched.
If I look under Run - Run Configurations I cannot see any option that would sense for CDT project.

I had exactly the same problem in Juno. I solved it by reinstalling the "C/C++ Development Tools" from the same Eclipse:
Help -> Install New Software ...
Introducing "work with: http://download.eclipse.org/tools/cdt/releases/juno" and selecting the CDT as the image:
After downloading and rebooting my "Run Configurations" now has the option to "C/C++ Application":

Related

Installing C++ on eclipse under one condition

What if you have the Eclipse IDE already installed on your computer, but the condition is that you have the JAVA eclipse installed but you also want to add the C++ Eclipse feature to your existing Eclipse IDE?
In Eclipse, select:
Help -> Install new software
In the Install dialog, under "Work with:" select Mars - http://download.eclipse.org/release/mars (or whatever Eclipse version you're on)
Then select:
Programming Languages -> C/C++ Development Tools
Select "Next >" and continue through the remaining questions. Restart Eclipse and you should have CDT installed.

I don't see CDT in eclipse-cdt

I don't see the File -> New -> C Project after I installed eclipse-cdt under ubuntu apt-get install eclipse-cdt
I've been using eclipse-cdt for couple of years, I upgraded my ubuntu and when I open eclipse the menus don't have C/C++ options in it [ as if you installed eclipse not eclipse-cdt] so I went to install new software and downloaded cdt and it says eclipse cdt is upto date yet I dont see : http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fgetting_started%2Fcdt_w_existing_code.htm [ you have to go down the page or search for Creating a project and click that link ]
did it disable during precise-pelagon installation or something went wrong.
thx.
First off, get a Real Disto ;-P
Then, check:
Window --> Open Perspective
or
Window --> Show View
If in neither, check:
Window --> Customize Perspective --> Command Groups Availability
Just an FYI -- Eclipse is Eclipse. CDT is just an addon plugin. You can download plain vanilla Eclipse and then go to Help --> Eclipse Marketplace and search for CDT and install the plugin. A lot of people prefer to NOT use the bundled distro Eclipse because they usually tweak and bloat it. I used to use the Fedora Eclipse for years until I got fed up with weird and strange things happening, which usually boiled down to me using the built in one from my package manager.
For example, the Fedora Eclipse does not include the Eclipse Marketplace by default (WHY!?!), you have to go get the plugin and install it into your Eclipse just to get the normal Eclipse features that should have been there all along. There's plenty of other examples...
ubunut upgrade screwed eclipse [ it uninstalled my old and installed new from ubuntu repo which is not CDT!! ]
resolution : install only from : http://eclipse.org/downloads/

Why are the C++ perspective and new project options not available in Eclipse?

I installed the "Eclipse IDE for Java Developers" package from the Eclipse website. I work with C++ projects as well, so I used the "Install New Software..." menu option to install the "C/C++ Development Tools" package. After doing so and restarting Eclipse, the C++ perspective did not appear; clicking on the "Open Perspective" button did not show the "C/C++" option. I also found that I was unable to create a C++ project; the "C/C++" tree node did not appear in the New Project wizard. The Java perspective and new project options were available.
I verified that CDT was installed by going to the "Installed Installation Details" dialog - "C/C++ Development Tools" appeared in the "Installed Software" list. I tried uninstalling this package and reinstalled it again without success. I tried removing the Eclipse installation altogether and installing the "Eclipse IDE for C/C++ Developers". There were no C/C++ options in this installation either. I checked the .log file in the workspace directory and found nothing unusual.
Why are the C/C++ features not available after installing the CDT feature in Eclipse?
The path for this system Eclipse was installed on included a 1.3.1 version of the Java runtime environment and the Eclipse executable was using this version to run Eclipse. Unfortunately, there doesn't appear to be any indication of this in Eclipse, nor any indication that anything failed.
Using the instructions here, I changed the JVM to javaw.exe in a Java 7 installation. After doing so, the C/C++ perspective and new project options appeared in Eclipse.
I ran into the similar problem with Eclipse-Luna(4.4) on Yosemite(10.10).
- NOT able to get the C/C++ perspective with JRE (8u25) or java 1.6 on Yosemite.
But I manage to get C/C++ perspective with the installation of JDK(8u25).
I also had the same issue.
I just installed java7 and restarted eclipse:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
I had this same problem on Linux (CentOS 6.5 32-bit) with Eclipse Luna:
I installed standard Eclipse (eclipse-java-luna-SR1-linux-gtk.tar.gz)
In eclipse, under Help->Install New Software I added the p2 software repository to the list of sites: http://download.eclipse.org/tools/cdt/releases/8.5
I installed C/C++ Development Tools and C/C++ Development Tools SDK
In CentOS, I also installed OpenJDK Development Environment java-1.7.0-devel-1:1.7.0.65-2.5.1.2.el6_5 (i686).
I edited eclipse.ini to increase the Xmx setting to 1024m from 256m, but I did not add a -vm property. In the Eclipse preferences after restarting, I verified it was using JDK 1.7.
The C++ perspective was not contained in the list of available perspectives.
But C++ Project was an option in the File->New menu, and when I chose it, Eclipse asked me if I wanted to use the C++ perspective. I said yes, and it appeared, and is now available in the perspectives list as well.
The fix for me was to install the latest JDK from Oracle. I had a fresh install of Yosemite and the Eclipse for Java developers. The C/C++ option showed up after the install and restart of Eclipse. Hope it helps!

Eclipse on Linux does not display options for C++ New Project

I recently installed Linux, from there I installed Eclipse, from there I installed the Eclipse PDE module, from there I installed CDT debug and CDT build tools. However when I go to create new project -> C++ -> I get an empty window...and I can not click next.
Seems like Eclipse is still missing something that I need to install.
My best suggestion would be to uninstall the eclipse you have, and install cdt directly, available here.

Eclipse: C/C++ Plugin Download Link?

I'm downloaded the Java EE version of Eclipse 3.5.1. Can I now use it to edit C/C++ with the proper plugin?
I went to Help >> Install New Software but I don't know which URL to use to get the C/C++ plugin. I can't find it on the Eclipse website either.
Just wanted to update the thread with the Juno (Eclipse 4.2) plugin link since I had some trouble finding it.
To install it on your existing eclipse go to Help >> Install New software >> Add and add the link: http://download.eclipse.org/tools/cdt/releases/juno
If you need another version you can find it here.
Note that the update URL has changed from tracking the Eclipse name to an independent numeric version beginning with Luna:
CDT for Eclipse Luna - http://download.eclipse.org/tools/cdt/releases/8.6
CDT for Eclipse Mars - http://download.eclipse.org/tools/cdt/releases/8.8.1
CDT for Eclipse Neon - http://download.eclipse.org/tools/cdt/releases/9.0
1-In Eclipse (Juno) , go to " Help/Install new software" .
2- Install dialog appears , in front of "Work with:" input at the top row of dialog press the "Add..." button.
3- in the "Add Repository" dialog type something as name( for example CDT) and in the "Location" input box type: " http://download.eclipse.org/tools/cdt/releases/juno " and press OK.
If your connection to internet be good, after a while you should have "CDT main features" and "CDT Optional Features" appeared in the list.
http://www.eclipse.org/downloads/ May be you need to download C/C++ IDE.
You can download the package you want according to your eclipse version.
The CDT can either be installed as part of the Eclipse C/C++ IDE packaged zip file or installed into an existing Eclipse using the "Help->Install New Software->Add(near work with)" and provide following required URL:
http://download.eclipse.org/tools/cdt/releases/indigo.
Version: Luna Service Release 2 (4.4.2)
Ubuntu: 14.04
Go to Help -> Install New Software
There is a text-box named "Work with".
http://download.eclipse.org/tools/cdt/releases/8.6
Wait for 5 minutes (Pending will appear)
Then, select "CDT main features" and "CDT optional features"
Click Next
Accept the agreement license
It will start downloading.
Alternative way to install CDT was tested under Ubuntu 16.04.2, Eclipse Neon3
Help > Eclipse Marketplace...
Enter "cdt" in Search > Find
Scroll down to locate Eclipse C/C++ IDE CDT x.x, click Install
You may have a problem with Galileo's download if you're behind a proxy.
If it comes to it, this might help.
http://www.easyeclipse.org/site/plugins/eclipse-cdt.html
This is what you are looking for...
I have not tried the same with gallelio or helios but when tried installing CDT pluggin for the recent eclipse Indigo, it worked fine. It works with both ADT and CDT plugins simultaneously.
The download URL for plugin is http://download.eclipse.org/tools/cdt/releases/indigo.
Installing CDT depends on version of eclipse you have.
This page will help you to download appropriate CDT based on the version on eclipse you have.
http://www.eclipse.org/cdt/downloads.php
Go to http://www.eclipse.org/cdt/downloads.php
You can either manually download the plugin then provide the local path in Help->Install New Software or you can directly provide the repository url.
For example if you are using Eclipse Helios then you can directly provide the CDT eclipse repository URL as http://download.eclipse.org/tools/cdt/releases/helios.
Tip:
try to get the .zip file for the plugin and paste it in dropins folder at eclipse/dropins because if you ever need to re install eclipse, this zip will be handy
https://eclipse.org/cdt/downloads.php
look for archives there, and download the latest one!
like this one