Apache NetBeans is an Integrated Development Environment(IDE) that enables one create web, mobile or desktop applications from its components known as modules. It supports any programming language such as PHP, Java ,C , C++, HTML, Ruby on Rails, Ajax, Javascript and many other languages.

NetBeans can be installed on Linux, Windows, MacOS and Solaris operating systems. It has the following features:

  • Has profiler, this provides expert experience for optimizing speed and memory usage of your application.
  • Has Git and Mercurial, that work without need to install any plugins.
  • It is easy to configure.
  • It has a large community of developers, writers and designers to help improve it.
  • Provides Internet of Things. You can create, test, debug and deploy profile applications that will work on mobile devices, PDAs, Raspberry and other embedded systems
  • Has Maven. No plugins are required to use Maven in NetBeans.

Apache NetBeans 12 is the latest version of IDE released on June 4, 2020. This article demonstrates how to install and configure NetBeans 12 IDE on Rocky Linux 8.

Install NetBeans 12 IDE on Rocky LInux 8

Apache NetBeans 12 installation consists of the following steps:

  1. Install Netbeans Dependencies (java JDK)
  2. Download and install NetBeans 12 IDE

Step 1: Install NetBeans Dependencies.

Let us begin with installing Java JDK on Rocky Linux 8

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

Accept the prompt to download the packages

Last metadata expiration check: 4:12:54 ago on Sun 04 Jul 2021 06:19:10 PM EAT.
Dependencies resolved.
==========================================================================
 Package                  Arch   Version                  Repo       Size
==========================================================================
Installing:
 java-11-openjdk          x86_64 1:11.0.11.0.9-2.el8_4    appstream 259 k
 java-11-openjdk-devel    x86_64 1:11.0.11.0.9-2.el8_4    appstream 3.4 M
Installing dependencies:
 copy-jdk-configs         noarch 3.7-4.el8                appstream  26 k
 java-11-openjdk-headless x86_64 1:11.0.11.0.9-2.el8_4    appstream  39 M
 javapackages-filesystem  noarch 5.3.0-2.module+el8.3.0+125+5da1ae29
                                                          appstream  29 k
 lksctp-tools             x86_64 1.0.18-3.el8             baseos     98 k
 ttmkfdir                 x86_64 3.0.9-54.el8             appstream  61 k
 tzdata-java              noarch 2021a-1.el8              appstream 190 k
 xorg-x11-fonts-Type1     noarch 7.5-19.el8               appstream 521 k
Enabling module streams:
 javapackages-runtime            201801                                  

Transaction Summary
==========================================================================
Install  9 Packages

Total download size: 44 M
Installed size: 178 M
Is this ok [y/N]: y

In case you have other versions of Java installed on your Rocky Linux 8 system. Switch from the existing Java version to a new one using this command.

$ sudo alternatives --config java
There is 1 program that provides 'java'.

  Selection    Command
-----------------------------------------------
*+ 1       java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el8_1.x86_64/bin/java)
2          java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.11.0.9-2.el8_4.x86_64/bin/java)

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

To confirm the version on Java installed run:

$ java -version
openjdk version "11.0.11" 2021-04-20 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.11+9-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9-LTS, mixed mode, sharing)

Step 2: Download and Install NetBeans 12 IDE on Rocky Linux 8

We download NetBeans 12 IDE on Rocky Linux 8 using the command:

curl -O https://downloads.apache.org/netbeans/netbeans/12.4/Apache-NetBeans-12.4-bin-linux-x64.sh

Next, we make the the downloaded file executable.

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

Then, install NetBeans 12 IDe by calling Apache-NetBeans-12.1-bin-linux-x64.sh from the shell as below.

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

Apache installtion Wizard shows, click “Next” for the installtion to begin.

Agree to Licence Agreement terms.

Here, you are required to set the installation directory

Agree NetBeans to check for automatic updates.

Wait for the installation to finish. Once complete, you will receive a message as below. Click “Finish” to complete the installation.

Now NetBeans 12 IDE is successfully installed on your Rocky Linux 8 system. You can launch it by navigating to the App Menu as below.

When launched, it opens this start up page.

Step 3: Create a Project in NetBeans 12 IDE

Creating projects in NetBeans 12 IDE is easy. From the start up page above, navigate to File >>new project tab as shown.

Here, we want to create a Java project with Maven

We will then download and activate the feature.

Confirm the installation as below.

After a successful download, the plugin will be activated.

Set the name and location of your file.

Click Finish and you will see your project appear as below.

Step 4: Installing Plugins on NetBeans 12 IDE

There are two ways to install plugins in NetBeans 12 IDE namely:

  1. Install using the NetBeans update center
  2. Install plugins manually

1. Install Plugins using the Update Center

To install plugins using the update center navigate to Tools>>Plugins and open the plugins manager as below. On the plugins manager, navigate to the Settings tab and select update centers.

Then you add the update center. In the new window type the name and the URL of your update center Settings.

Plugins are then detected and displayed in the Available Plugins tab. Right click and Install the desired plugins and restart NetBeans.

2. Install NetBeans 12 IDE Plugins Manually

Another way of installing plugins to NetBeans is by downloading them and adding them manually.

Download and extract the NetBeans plugins to a directory. Then navigate to the NetBeans plugin page and go to Tools>Plugins

Uninstall previous plugins by going to the “installed” tab and right click and select uninstall. Allow Netbeans to restart when requested.

Now proceed and add your downloaded plugins by clicking on the Downloaded tab and click add Plugins.

Browse to the download folder and select the .nbm files and click open. Then go to the Downloaded tab and install the loaded plugins as in the previous method. Agree to the Licence and click continue in case of additional validation.

After a successful installation Finish and restart Netbeans.

Conclusion

In the above article, I have demonstrated how to install and configure NetBeans 12 IDE on Rocky Linux 8. I have also demonstrated how to add plugins to your NetBeans 12 IDE. I hope this article was of help to you.

See related articles on our website.

How To Install NetBeans IDE 12 on Linux Mint

How To Install Android Studio on Linux Mint

LEAVE A REPLY

Please enter your comment!
Please enter your name here