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" http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz 
--2016-10-06 23:56:40--  http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 96.17.182.49, 96.17.182.42
…
…
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 
jdk1.8.0_11/
jdk1.8.0_11/javafx-src.zip
jdk1.8.0_11/bin/
jdk1.8.0_11/bin/jmc
…
…
…
jdk1.8.0_11/jre/Welcome.html
jdk1.8.0_11/jre/README
jdk1.8.0_11/README.html


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-1.7.0.51-2.4.5.5.el7.x86_64/jre/bin/java
   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 http://download.netbeans.org/netbeans/8.0.1/final/bundles/netbeans-8.0.1-linux.sh 
--2016-10-07 00:13:55--  http://download.netbeans.org/netbeans/8.0.1/final/bundles/netbeans-8.0.1-linux.sh
Resolving download.netbeans.org (download.netbeans.org)... 96.17.182.49, 96.17.182.42
…
…
2016-10-07 00:22:27 (396 KB/s) - ‘netbeans-8.0.1-linux.sh’ saved [206829568/206829568]


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

[root@localhost Desktop]# chmod 700 netbeans-8.0.1-linux.sh 


Run the following command to install Netbeans IDE beans.

[root@localhost Desktop]# ./netbeans-8.0.1-linux.sh 
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.
installer
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.
Summary
Installation process started.
Installation_started

 

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


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 www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: Netbeans
user image Author :  Jackson