How to install NetBeans IDE in CentOS

To install NetBeans IDE in CentOS

NetBeans is an integrated development environment for developing Java, JavaScript, PHP, etc. It offers platform framework for Java desktop applications. It is available for Windows, Linux, Mac and Solaris operating systems.

To install Java

Download jdk package to install java by running the following command.

[root@localhost Desktop]# wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" 
--2016-10-06 23:56:40--
Resolving (,
2016-10-07 00:01:25 (549 KB/s) - ‘jdk-8u11-linux-x64.tar.gz’ saved [159019376/159019376]

Extract the downloaded package as shown below.

[root@localhost Desktop]# tar -zxvf jdk-8u11-linux-x64.tar.gz 

Then run the following command to move the extracted package to /usr directory.

[root@localhost Desktop]# mv jdk1.8.0_11/ /usr/ 
Install Java
[root@localhost Desktop]# /usr/sbin/alternatives --install /usr/bin/java java /usr/jdk1.8.0_11/bin/java 2
[root@localhost Desktop]# /usr/sbin/alternatives --config java 
There are 2 programs which provide 'java'.
Selection    Command
*+ 1           /usr/lib/jvm/java-1.7.0-openjdk-
   2           /usr/jdk1.8.0_11/bin/java
Enter to keep the current selection[+], or type selection number: 2

Check the java version by running the following command.

[root@localhost Desktop]# java -version 
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

Then set Environmental variable.

[root@localhost Desktop]# export JAVA_HOME=/usr/jdk1.8.0_11/
[root@localhost Desktop]# export JRE_HOME=/usr/jdk1.8.0_11/jre/
[root@localhost Desktop]# export PATH=$JAVA_HOME/bin:$PATH 


To install NetBeans IDE

First download the Netbeans IDE installation package by running the following command.

[root@localhost Desktop]# wget 
--2016-10-07 00:13:55--
Resolving (,
2016-10-07 00:22:27 (396 KB/s) - ‘’ saved [206829568/206829568]

Set executable permission for the downloaded package by running the following command.

[root@localhost Desktop]# chmod 700 

Run the following command to install Netbeans IDE beans.

[root@localhost Desktop]# ./ 
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...

NetBeans IDE Graphical installer opens, then click next to proceed further.
Read the license agreement and Accept the license agreement. Then click next.
license agreement
Set the Netbeans IDE installation path.
installation path
Then set the Glass Fish server installation path.
Glass Fish server
Finally check the Summary and click install.
Installation process started.


Double click the NetBeans IDE shortcut in the desktop to open it.
 NetBeans IDE shortcut
Check the available Plugins as follows. 
Click on About to view the Netbeans IDE.

Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: Netbeans
user image Author :  Jackson