On this article we will discuss how to install Apache NetBeans version 12.1 on Linux 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:
- Install Java JDK
- Download NetBeans 12 IDE
- 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:184.108.40.206-2.el8_3.x86_64 java-11-openjdk-devel-1:220.127.116.11-2.el8_3.x86_64 java-11-openjdk-headless-1:18.104.22.168-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-22.214.171.124.b09-2.el8_1.x86_64/jre/bin/java) 2 java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-126.96.36.199-2.el8_3.x86_64/bin/java) Enter to keep the current selection[+], or type selection number: 2
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)… 188.8.131.52, 2a01:4f8:10a:201a::2 Connecting to downloads.apache.org (downloads.apache.org)|184.108.40.206|: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]
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
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 :
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…
After Apache NetBeans IDE installation wizard is showing, then we will follow the instruction until the installation is completed done.
After installation was completed done, then we will use Apache NetBeans by clicking it icon from Deskotp.
Then we are ready to use the Apache NetBeans 12.1 IDE for developing our projects.
The Apache NetBeans 12.1 installation was completed done successfully.