Install NetBeans IDE on Rocky Linux 8

0
31

In this tutorial, we will cover how to install NetBeans IDE on Rocky Linux 8. NetBeans IDE is a free and open source extensible Java IDE (Integrated Development Environment) that enable software developers to 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, Ruby and C/C++ developers.

Want to run NetBeans IDE on Rocky Linux 8 desktop? This guide will take you through how to install NetBeans IDE on Rocky Linux 8.

Install NetBeans IDE on Rocky Linux 8

Install JDK on Rocky Linux 8

Apache NetBeans 12.6 (current stable release as of this writing) require JDK 11+. In this guide, we use Java 11;

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

To verify the version of the installed Java development kit, run the command below;

java -version
openjdk version "11.0.14" 2022-01-18 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.14+9-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.14+9-LTS, mixed mode, sharing)

Installing NetBeans IDE on Rocky Linux

There are different methods in which you can install NetBeans IDE on Rocky Linux. These include;

Install NetBeans using NetBeans installer script

NetBeans provides a script that makes it installation easier. Navigate to Apache NetBeans downloads page and grab the installer script for Linux. You can simply run the command below to download it (for version 12.6).

wget https://dlcdn.apache.org/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-linux-x64.sh

Once downloaded, run the installer as non root user you logged in to your system as, as follows;

chmod +x Apache-NetBeans-12.6-bin-linux-x64.sh
./Apache-NetBeans-12.6-bin-linux-x64.sh

The script will launch the NetBeans installer.

  • If you want, you can customize your installation, otherwise, click Next to proceed.
Install NetBeans IDE on Rocky Linux 8
  • Accept the EULA and proceed.
  • Choose the installation path for your NetBeans application. Otherwise, click next to accept the default.
  • Check the installation summary and install NetBeans on Rocky Linux 8.
  • Once the installation is done, click Finish to close the installation wizard.

Netbeans should be installed on your Rocky Linux 8 system.

Install NetBeans from Snaps

If you need to get the latest version of NetBeans installed and running on Rocky Linux 8, you can install it from snaps using the snap package manager.

Install Snap on Rocky Linux 8;

sudo dnf install epel-release -y
sudo dnf install snapd -y

Next, start and enable snapd systemd unit socket to run on system boot

sudo systemctl enable --now snapd.socket

Enable Classic snap support;

sudo ln -s /var/lib/snapd/snap /snap

Once Snap is installed, log out of your system.

Next, log back in and install Apache NetBeans IDE on Rocky Linux using snap;

sudo snap install netbeans --classic

Running NetBeans on Rocky Linux 8

In all the methods, once the installation is done, NetBeans should now be available among your system applications.

Install NetBeans IDE on Rocky Linux 8

You can thus just click it to launch it and start using it.

Install NetBeans IDE on Rocky Linux 8

And that brings us to the end of our simple tutorial on how to install NetBeans on Rocky Linux 8.

Read more on the NetBeans IDE Knowledge base.

Other Tutorials

Install NetBeans IDE on Debian 11

Install NetBeans IDE on Ubuntu 22.04

LEAVE A REPLY

Please enter your comment!
Please enter your name here