In this guide we will look at how you can install Apache NetBeans 12 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 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 on CentOS 8 / RHEL 8 Desktop

Follow the steps below to install Apache NetBeans 12 on CentOS 8 Desktop. We will start with the installation of Java then we’ll download and run the installer script. Apache NetBeans 12 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 IDE on CentOS | RHEL 8

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

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

curl -O

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.

install apache netbeans centos 01

Agree to License Agreement terms.

install apache netbeans centos 02

Change or agree to default installation directory.

install apache netbeans centos 03

Agree for automatic updates checking.

install apache netbeans centos 04

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

install apache netbeans centos 05

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

install apache netbeans centos 06

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

install apache netbeans centos 08

Learning materials:

Java Programming Masterclass for Software Developers

Java In-Depth: Become a Complete Java Engineer!

The Complete Java Certification Course

Similar guides:

Install Atom on CentOS / RHEL 8

Install VSCode on CentOS / RHEL 8

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here