Netbeans 9 C++ Support

14,685

Solution 1

I wonder if there is a support for C++ in NetBeans 9.

The answer to that is definitely no, and definitely yes...

  • No, in the sense that the use of C++ on NetBeans 9 is not currently supported by Apache, and it is done at your own risk. NetBeans is currently being handed over from Oracle to Apache, and they haven't got to the C/C++ part yet. See What's Happened to My Favorite NetBeans Plugins? for more information.

  • Yes, in the sense that it is technically feasible to do it; the NetBeans 9 IDE allows you to use C/C++.

This is what you need to do:

Step 1 of 2: Make C/C++ available as a plugin.

  • Tools > Plugins > Settings tab > click the Add button.
  • On the Update Center Customizer screen:
  • This should create a new entry in the Configuration of Update Centers list in the Settings tab.
  • Checking that new entry should instantly add plugins to the Available Plugins tab.
  • Click the Available Plugins tab, then click the Category column to sort the entries by category.
  • The Name of the entry at the top of the list should be C/C++. If so, you have successfully made the plugin available:

    availablePlugins

Step 2 of 2: Install the C/C++ plugin.

  • Check the C/C++ entry shown in the screen shot above, and then click the Install button.
  • Follow the wizard's instructions. The plugin will be downloaded and installed, and you will be required to restart NetBeans.
  • To confirm that C/C++ has been installed, click Tools > Plugins > **Installed tab. You should see an entry for the C/C++ plugin you just installed.
  • Also, verify that you can now create a C/C++ project through the Project wizard:

    C++Project

Notes:

Solution 2

Netbeans 10 and 11 - adding C / C++ also works in the same fashion.

In Netbeans go to Tools->Plugins->Settings

Entry NetBeans 8.2 Plugin Portal is already present.

Click the checkbox next to this entry.

Switch to Available Plugins tab, click Check for Newest.

C / C++ is now on the list.

Computer that this is done is on Windows 10 x64.

Share:
14,685

Related videos on Youtube

Cergey Chaulin
Author by

Cergey Chaulin

Updated on October 03, 2020

Comments

  • Cergey Chaulin
    Cergey Chaulin over 3 years

    I wonder if there is a support for C++ in Netbeans 9. This link shows C++ on screenshot (when creating new project). However, after installing, I don't have one.

    • Lucifer Morningstar
      Lucifer Morningstar almost 5 years
      On Apache Netbeans 11.1 (the current version) the Tools > Plugins > Settings actually contains na unchecked by default checkbox to enable 8.2 plugins. Enable it, Change check for updates frequency to: After restart, and restart the IDE. The C++ plugin would now appear in the list of available plugins.
  • Cergey Chaulin
    Cergey Chaulin almost 6 years
    Hm, on one machine I have no plugins available to download but on work machine everything is ok.
  • Oo.oO
    Oo.oO almost 6 years
  • TSG anti SO dark forces
    TSG anti SO dark forces almost 6 years
    netbeans support for c++ is very poor especially in the context of C++17 new language features and so does the Eclipse CDT , consider investing in Jetbrains Clions to gain productivity for cross compilation
  • Gili
    Gili over 5 years
    Is this as stable in 9.0 as it was under the previous version where it was officially supported?
  • skomisa
    skomisa over 5 years
    @Gili I can't really answer that since I have only done simple "Hello world!" testing in C++ on NetBeans 9.0. One way to get a feel for the stability might be to skim through the Jira Bug Reports for C++ on NetBeans 9.0. There aren't that many new issues, but that may reflect a relatively small number of C++ users on 9.0 at present rather than the true absence of new bugs.
  • Admin
    Admin over 5 years
    What bothers me is that this information was so hard to find I had to look it up on stackoverflow. What bothers me even more is that apache has screenshots that show netbeans 9 listing to create a new C++ project, I really consider that false advertising. Url for reference: netbeans.apache.org/download/nb90
  • skomisa
    skomisa over 5 years
    @come You have a point. It's not unreasonable for NetBeans 8.x users to assume that NetBeans 9 will continue to support C++. While the NB90 web site does not explicitly claim that it does, I think it would have been appropriate to be very clear about the absence of formal support. Formal support for C++ will be included in a future NB release.
  • Max Power
    Max Power almost 5 years
    This also seems to work in netbeans 11.0 LTS. My testing of it is only basic.
  • Lucifer Morningstar
    Lucifer Morningstar almost 5 years
    Alternatively to Clions you may want to consider the free Android Studio, that has C++ support.
  • Bob
    Bob over 4 years
    The maintainers at Apache risk not getting users as soon as they might and a useful project dying- no one who has already been bitten by missing features is going to risk more time moving if they think they might suddenly find themselves without a feature they expect to be there and moving back again: they should list the feature sets of 8.2 v current side by side PROMINENTLY . And make the community more accessible eg like stackexchange as opposed to all that TLDR/Doesn't Work email palava.
  • skomisa
    skomisa over 4 years
    @Bob No argument from me, and I made a similar point in my comment above. It's fine for the NetBeans team to post "What's new in NetBeans x.y" but they really should also prominently post "What's changed in NetBeans x.y" and "What's been removed in NetBeans x.y". You shouldn't have to go to blogs, YouTube videos or SO to find such fundamental and important information.
  • lvr123
    lvr123 about 2 years
    What about configuring it ? The link Configuring NetBeans IDE 8.0 for C/C++/Fortran is dead ?