4

I just upgraded just Ubuntu 14.02 to Ubuntu 16.04 and found that NetBeans was no longer working now. So I used:

sudo apt install netbeans

Now when I open the newly installed NetBeans, it does not give me the option for making a C/C++ project.

no C option

Can anybody please help with this problem?

4

Install the C/C++ plugin in NetBeans.

In NetBeans, go to ToolsPlugins.

Then in Available Plugins, in the C/C++ category, check the box for C/C++, then click Install to start the installation.

Source: Enabling C/C++/Fortran in the IDE


If no update centers are enabled in NetBeans for installing and updating plugins, then you may see a completely empty list under Available Plugins. (Less commonly, if some are enabled but they do not provide the C/C++ plugin, then you may see some plugins but not that one.)

The Plugins dialog box, Available Plugins tab, listing no plugins at all.

The solution is to go to the Settings tab, look in the list of Update Centers, and check the box for NetBeans Distribution.

Selecting NetBeans Distribution in Update Centers in the Settings tab.

Then you can go back to the Available Plugins tab and the C/C++ plugin should be listed. You may have to click the Check for Newest button (though I didn't have to).

enter image description here

  • It worked in my Netbeans but after installing the C/C++ plugins and restarting Netbeans I had to update all my plugins and restart Netbeans again or else my C++ program would compile successfully but it wouldn't run. I updated the Netbeans plugins by clicking on the update plugins notification that I received in Netbeans. – karel Nov 4 '17 at 13:00
  • @karel Was the problem running the program just that NetBeans wouldn't debug or otherwise run it, or that the program would actually not run even when attempting to execute it outside of NetBeans? – Eliah Kagan Nov 4 '17 at 13:13
  • My C++ source code was copied from a program that I had already compiled and executed successfully in the terminal so I knew what output to expect if the program executed successfully in Netbeans. – karel Nov 4 '17 at 13:17
  • @karel Yes, didn't figure your program had a bug. Instead, I'm concerned that NetBeans may actually have caused an executable that was incapable of running to be produced. Especially if that happened, I'd consider warning about the problem in this post. That's why I was wondering if the program emitted from the build NetBeans controlled was able to be run from outside NetBeans. – Eliah Kagan Nov 4 '17 at 13:18
  • 1
    I didn't compile it again after I updated the Netbeans plugins. Instead I clicked the green Run arrow to run the executable file that I had previously compiled before restarting Netbeans and this time it ran successfully. – karel Nov 4 '17 at 13:22

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.