December 3, 2021
Apache NetBeans 12 Intallation

How To Install Apache NetBeans On CentOS 8 Desktop

On this article we will discuss how to install Apache NetBeans version 12.1 on Linux CentOS 8 Desktop.

Introduction

Apache NetBeans is an integrated development environment (IDE) for creating any applications from its modular components called as modules. Netbeans supports any programming language, such as : Java, PHP, HTML, JavaScript, C, C++, Ajax, JSP, Ruby on Rails and other programming languages using extensions. NetBeans runs on Windows, macOS, Linux and Solaris. On this article, we will discuss how to install Apache Netbeans version 12.1 on CentOS 8 Desktop.

Before continuing read the article, it is better to know the NetBeans history as mention in Wikipedia.org. NetBeans framework began in 1996, as Java IDE student project under the guidance of the Faculty of Mathematics and Physics at Charles University in Prague. Then NetBeans was acquired by Sun Micrsosytem in 1999, and then Oracle acquired Sun Microsystem in 2010. Oracle submitted a proposal to donate the NetBeans project to the Apache Software Foundation in 2016.

Apache NetBeans Installation

Apache NetBeans 12 is latest LTS version of the IDE, which was released on June 4, 2020. On this article, we will install Apache NetBeans version 12.1. The installation process will consist of several steps, namely:

  1. Install Java JDK
  2. Download NetBeans 12 IDE
  3. Install NetBeans 12 IDE

Install Java JDK

Apache Netbeans needs Java JDK to run on the system, so the first step on installing Netbean is to check if the system (CentOS 8) has had Java JDK installed, if it was No, then we instal Install Java JDK with teh following step.

[ramans@localhsost ~]$ java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

On our system, it was already OpenJDK version 1.8.0, I think it is better if we have the latest OpenJDK on our system, then we will install the latest OpenJDK version and make it as default.

[ramans@localhsost ~]$ sudo dnf install java-11-openjdk-devel

The output will be :

Installed:
java-11-openjdk-1:11.0.9.11-2.el8_3.x86_64 java-11-openjdk-devel-1:11.0.9.11-2.el8_3.x86_64
java-11-openjdk-headless-1:11.0.9.11-2.el8_3.x86_64
Complete!

To switch from the OpenJDK existing to the new one, then submit the command line :

[ramans@localhsost ~]$ 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-1.8.0.252.b09-2.el8_1.x86_64/jre/bin/java)
2 java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.9.11-2.el8_3.x86_64/bin/java)
Enter to keep the current selection[+], or type selection number: 2
OpenJDK switch version
OpenJDK version 11.0.9

On this step, we have OpenJDK version 11.0.9 on our system, the we will continue to the next step for installing Apache Netbean 12 LTS.

Download NetBeans 12 IDE

We will install the NetBeans version 12.1 by download it from Apache NetBean official website.

[ramans@localhsost ~]$ wget https://downloads.apache.org/netbeans/netbeans/12.1/Apache-NetBeans-12.1-bin-linux-x64.sh
--2020-12-09 05:23:04-- https://downloads.apache.org/netbeans/netbeans/12.1/Apache-NetBeans-12.1-bin-linux-x64.sh
Resolving downloads.apache.org (downloads.apache.org)… 88.99.95.219, 2a01:4f8:10a:201a::2
Connecting to downloads.apache.org (downloads.apache.org)|88.99.95.219|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 392439808 (374M) [text/x-sh]
Saving to: ‘Apache-NetBeans-12.1-bin-linux-x64.sh’
Apache-NetBeans-12.1-bin-l 100%[=======================================>] 374.26M 1.06MB/s in 30m 33s e
2020-12-09 05:53:41 (209 KB/s) - ‘Apache-NetBeans-12.1-bin-linux-x64.sh’ saved [392439808/392439808]
Download NetBean 12.1

The file name is : Apache-NetBeans-12.1-bin-linux-x64.sh. After completing download, then we will change file mode to be executable.

[ramans@localhsost ~]$ sudo chmod +x Apache-NetBeans-12.1-bin-linux-x64.sh
Apache-NetBeans-12.1-bin-linux-x64.sh

Install NetBeans 12 IDE

The Apache NetBean 12.1 installation will be done by calling Apache-NetBeans-12.1-bin-linux-x64.sh from the shell : ./Apache-NetBeans-12.1-bin-linux-x64.sh.

ramans@localhsost ~]$ ./Apache-NetBeans-12.1-bin-linux-x64.sh
Configuring the installer…
Searching for JVM on the system…
Extracting installation data…
Running the installer wizard…
Executing Apache NetBeans installation script

After Apache NetBeans IDE installation wizard is showing, then we will follow the instruction until the installation is completed done.

How to Install NetBeans On CentOS 8 Desktop
The first Installation Wizard showing
How to Install Apache NetBeans On CentOS 8
The licens agreement
NetBeans On CentOS 8 Desktop
Chose folder for Netbacn 12.1
Install NetBeans On CentOS 8 Desktop
The Installation will be initiated
Install Apache NetBeans On CentOS 8
Apache NetBeans 12.1 Installation on process
pache NetBeans On CentOS 8 Desktop
The NetBeans installation was compeleted successfully

After installation was completed done, then we will use Apache NetBeans by clicking it icon from Deskotp.

Install Apache NetBeans On CentOS 8 Desktop
Apache NetBeans 12.1 IDE first starting wndows

Then we are ready to use the Apache NetBeans 12.1 IDE for developing our projects.

Conclusion

The Apache NetBeans 12.1 installation was completed done successfully.

Share this article via :

Leave a Reply

Your email address will not be published. Required fields are marked *