Installing NetBeans - Kenyon College MSSC Docs

This documentation was validated on macOS 10.14.6 and Windows 10 version 1809. Documentation for Linux is not provided here (presumably, if you're already running Linux, you can figure it out). If you are running on an older version of Windows or macOS, this documentation should *still* work, but it *might* not.

macOS Installation

  1. If you haven't already downloaded and installed NetBeans yet:
    1. Click [here] to download NetBeans 11.2 from Apache's server OR [here] to download from my development server. You only need to download the installer ONCE!
    2. Open the DMG file (it's probably in your Downloads folder).
    3. Inside the DMG, there's a .pkg installer. Open it.
    4. Follow the on-screen instructions to install NetBeans.
  2. If you installed NetBeans but you're not sure if you have the C++ plugin:
    1. Launch the NetBeans app.
    2. In the menu bar, select File > New Project.
    3. In the window that shows, if C/C++ is listed as one of the categories, you have the C/C++ plugin. NetBeans does NOT install with the plugin by default!
  3. If you need to install the NetBeans C/C++ plugin:
    1. Launch the NetBeans app.
    2. In the menu bar, select Tools > Plugins.
    3. In the dialog box, go to the Settings tab.
    4. Make sure that the checkbox for the NetBeans 8.2 Plugin Portal is selected.
    5. Go to the Available Plugins tab.
    6. Click the "Check for Newest" button. If you don't, the right plugin won't show up!
    7. Under the C/C++ category, you should now see an option for the C/C++ plugin. Click the checkbox for the plugin, then click Install.
    8. In the dialog box that shows, read the license agreement (or don't, it doesn't matter to me) for all of the applicable plugins, then click on the checkbox to accept those terms. Once you begin the install, don't interrupt it. NetBeans will download all of the applicable plugins from central Apache servers, then validate them.
    9. Depending on the version that you have, you might get a notice that plugins require your attention, along with a warning about installing untrusted plugins. Just click Continue. If you're wondering why this happens, it's because the C++ compiler for NetBeans has been deprecated in favor of the GCC compiler, a compiler that's much more accessible through the terminal. Come talk to me in the MSSC if you'd like to learn how to compile in the terminal. It's pretty spiffy.
    10. Once the install has finished, close and quit NetBeans. There's some more software that we need to install for full functionality.
  4. If you've already installed the Java Development Kit, you can just restart NetBeans and start programming!
  5. If you need to install the Java Development Kit, you can download the JDK 11 [from Oracle] (requires login) or [from my development server] (from Kenyon network only).
    1. Unpack the DMG file like above for NetBeans, but for the JDK. It will unzip and present a .pkg installer. Launch it.
    2. Install the JDK like you would any other piece of software with an installer.
    3. If NetBeans was running, you'll need to quit it completely (closing it is NOT sufficient!), then restart the program.

Windows Installation

  1. Click [here] to download NetBeans 11.2 from Apache's server OR [here] to download from my development server (from Kenyon network only). You only need to download the installer ONCE!
  2. Run the installer like any other Windows executable. You may need to provide administrator privileges. This might take a while, so go make yourself a cup of hot cocoa. When the installer is done, click on Finish.
  3. BEFORE you run NetBeans, you should install the Java Development Kit (JDK). If you need to install the Java Development Kit, you can download the JDK 11 [from Oracle] (requires login) or [from my development server] (from Kenyon network only).
  4. As you'd expect, run the JDK installer. You may need to provide administrator privileges. This installs pretty quickly.
  5. Now, you can open up NetBeans. There's two possibilties: the version of the installer that you have included the C/C++ plugin, or it didn't. Chances are, you don't have it.
    If you'd like to find out whether you have the plugin:
    1. Launch the NetBeans app.
    2. In the menu bar, select File > New Project.
    3. If you only see categories for Java, HTML, PHP, and Samples, you don't have the plugin. If you see an option for C/C++, you do have the plugin.
    If you don't have the plugin and you need to install it:
    1. Launch the NetBeans app.
    2. In the menu bar, select Tools > Plugins.
    3. In the dialog box, go to the Settings tab.
    4. If the NetBeans 8.2 Plugin Portal is inactive or the checkbox is deselected, then select it to activate it.
    5. Go to the Available Plugins tab.
    6. Click the ""Check for Newest" button. If you don't, the C/C++ plugin won't show up!
    7. Click on the checkbox next to the C/C++ plugin, under the Install column.
    8. In the dialog box that shows, read the license agreement (or don't, it doesn't matter to me) for all of the applicable plugins, then click on the checkbox to accept those terms. Once you begin the install, don't interrupt it. NetBeans will download all of the applicable plugins from central Apache servers, then validate them.
    9. Depending on the version that you have, you might get a notice that plugins require your attention, along with a warning about installing untrusted plugins. Just click Continue. If you're wondering why this happens, it's because the C++ compiler for NetBeans has been deprecated in favor of the GCC compiler, a compiler that's much more accessible through the terminal. Come talk to me in the MSSC if you'd like to learn how to compile in the terminal.
    10. Once the install has completed, restart NetBeans by closing and reopening it.

Files hosted on my development server are provided as-is, with absolutely no warranty. The server is provided for authorized users only. Downloading the necessary files from Oracle, Apache, or some other source are subject to their terms and conditions.

This documentation is provided as-is, with absolutely no warranty. Every effort has been made to ensure the accuracy of this documentation, but errors may still exist. You may report errors by emailing me at [email protected]. You assume all responsibility for actions taken based on this documentation.

Copr. 2020 Sejin Kim, for Kenyon College SCMP118.