You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

In this guide we will look at how you can install Apache NetBeans 12.0 on CentOS 8 / RHEL 8 Desktop. Apache NetBeans is a very powerful Integrated Development Environment (IDE) tool that enables you as a Developer create Desktop, Web and Mobile Applications from its modular framework. It supports Java, PHP, HTML, JavaScript, C, C++, Ajax, JSP, Ruby on Rails and other programming languages using extensions.

The Apache NetBeans IDE can be installed on Windows, macOS, Linux and Solaris operating systems. This guide is for installation of Netbeans 12.0 on CentOS 8 but the installation can be used on any other Linux system. There are two main ways of installing NetBeans IDE – using bundled installer script and manually extracting files and placing them in a path.

Install Apache NetBeans 12.0 on CentOS 8 / RHEL 8 Desktop

Follow the steps below to install Apache NetBeans 12.0 on CentOS 8 Desktop. We will start with the installation of Java then we’ll download and run the installer script. Apache NetBeans 12.0 is the first LTS release of NetBeans as a top level Apache project.

Step 1: Install NetBeans Dependencies

Netbeans needs Java JDK to run. Let’s begin by installing Java on Fedora system.

sudo dnf install java-11-openjdk  java-11-openjdk-devel

Accept installation prompt:

Last metadata expiration check: 1 day, 8:47:43 ago on Thu 02 Jul 2020 01:55:46 AM EAT.
Dependencies resolved.
 Package                                                  Architecture                           Version                                             Repository                                 Size
 java-11-openjdk                                          x86_64                                 1:                                 AppStream                                 247 k
 java-11-openjdk-devel                                    x86_64                                 1:                                 AppStream                                 3.3 M
Installing dependencies:
 java-11-openjdk-headless                                 x86_64                                 1:                                 AppStream                                  40 M

Transaction Summary
Install  3 Packages

Total download size: 43 M
Installed size: 187 M
Is this ok [y/N]: y

If you have more than one version of Java installed on your CentOS 8 machine, set default one:

$ sudo alternatives --config java

There are 2 programs which provide 'java'.

  Selection    Command
*+ 1           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-
   2           java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-

Enter to keep the current selection[+], or type selection number: 2

Confirm Java is installed by querying the version.

$ java -version
openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing)

Step 2: Download and Install NetBeans 12.0 IDE on CentOS | RHEL 8

We’ll install NetBeans IDE on Linux Mint from the installer script available on Downloads page.

Install wget:

sudo dnf install -y wget

Download NetBeans 12.0 on CentOS 8 | RHEL 8 Desktop machine.


Make the script executable:

chmod +x

Run the script to install NetBeans on Linux Mint 20:

sudo ./

Click “Next” on the first installation wizard to begin installation.

Agree to License Agreement terms.

Change or agree to default installation directory.

Agree for automatic updates checking.

Be patient as the installation starts, it should take few seconds.

Once completed you’ll get message like in below screenshot.

You can then search for NetBeans application and start it to get started with your Development projects.

Learning materials:

in stock
in stock
in stock

Similar guides:

Install Atom on CentOS / RHEL 8

Install VSCode on CentOS / RHEL 8

You can support us by downloading this article as PDF from the Link below. Download the guide as PDF