How to Install Apache NetBeans on CentOS 8

Install Apache NetBeans on CentOS 8

In this article, we will have explained the necessary steps to installing and configure Apache NetBeans on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Apache NetBeans IDE lets you quickly and easily develop Java desktop, Java EE, and web applications, as well as HTML5 applications with HTML, JavaScript, and CSS. The IDE also provides a great set of tools for PHP and C/C++ developers. It is free and open-source and has a large community of users and developers around the world.

Install Apache NetBeans on CentOS 8

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo dnf install epel-release
sudo dnf update

Step 2. Install Java.

To install Java 11, run the commands below:

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

Step 3. Download and Install Apache NetBeans on the CentOS system.

  • Install NetBeans using Snap:

Now we install Netbeans on CentOS 8 you can run the following command:

sudo dnf install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install netbeans --classic
  • Install NetBeans from the official source:

Go to the NetBeans IDE download page and download the latest NetBeans IDE installer script for your installed Linux distribution:

wget https://www.apache.org/dyn/closer.cgi/netbeans/netbeans/12.2/Apache-NetBeans-12.2-bin-linux-x64.sh

Next, make the script executable:

chmod +x Apache-NetBeans-12.2-bin-linux-x64.sh

After that, run the script to install NetBeans:

sudo ./Apache-NetBeans-12.2-bin-linux-x64.sh

Step 4. Accessing Apache NetBeans.

Now that you have downloaded and installed Apache Netbeans, you can search for the NetBeans application and start it to get started with your Development projects or copy and paste the below-mentioned command in your terminal:

netbeans

That’s all you need to do to install NetBeans on CentOS 8. I hope you find this quick tip helpful. For further reading on Apache NetBeans, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.