Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans 9 C++ Support

Tags:

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.

like image 283
Cergey Chaulin Avatar asked Jul 24 '18 08:07

Cergey Chaulin


People also ask

Does NetBeans support C language?

NetBeans C/C support lets you create C and C Application and Library projects with generated makefiles, as well as C and C++ projects with existing sources. You can build, run, and debug your project on the local host (the system from which you started the IDE) or on a remote host running a UNIX® operating system.

Which languages does NetBeans support?

Most developers recognize the NetBeans IDE as the original free Java IDE. It is that, and much more! The Apache NetBeans IDE provides support for several languages (Java, PHP, JavaFX, JavaScript, etc.) and frameworks, and more (C/C++) will be incorporated soon.

How can I run C program in NetBeans?

Right-click it to open the context menu, then select Properties > Run > Run Command. Enter your command to be run in the Run Command field. This is the Help for Run Command in NetBeans 8.2: Enter a command to be executed when you run the project.

Does anyone still use NetBeans?

NetBeans IDE is more well known as the popular web development tool that streamlines the building and deployment of applications. With support for programming languages, like Java, PHP, and HTML, it makes sense why more than 1.5 million people actively employ the platform each month.


2 Answers

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:
    • Enter some value in the Name field (e.g. "My plugins"),
    • Enter http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz in the URL field
    • Click the OK button.
  • 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:

  • The finer details on configuring C/C++ on NetBeans 9 (Tools > Options > C/C++) are unchanged from NetBeans 8.x. Refer to Configuring NetBeans IDE 8.0 for C/C++/Fortran for that.
  • Much of this answer has been copied from an answer I gave on problems with Tomcat on NetBeans 9, but the details are sufficiently different to merit a separate answer.
like image 150
skomisa Avatar answered Nov 17 '22 04:11

skomisa


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.

like image 22
coarist Avatar answered Nov 17 '22 04:11

coarist