Goal

Installation of NetBeans, GlassFish and Tomcat on Oracle Linux 7

 

Steps

(1) Download JDK 8 rpm from

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

 

(2) Install JDK's rpm using yum

yum install -y jdk-8u201-linux-x64.rpm

 

(3) Check the Java version

java -version

openjdk version "1.8.0_191"

OpenJDK Runtime Environment (build 1.8.0_191-b12)

OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

 

(4) Download NetBeans 8.2 IDE Installer

 wget -c http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh

 

(5) Make the installer executable and run it

chmod +x netbeans-8.2-linux.sh 
./netbeans-8.2-linux.sh

 

(6) Customize the installation

 

(7) Choose JDK and NetBeans pathes

 

(8) Install GlassFish Server

 

(9) Install Tomcat Server

 

(10) Revise the Summary

 

(11) Add netbeans.sh to the $PATH by opening the file ~/.bash_profile and updating the following line then save the file.

PATH=$PATH:$HOME/.local/bin:$HOME/bin:/usr/local/netbeans-8.2/bin

 

(12) Activate changes by source command

source ~/.bash_profile

 

Now you could run netbeans from command line. Enjoy!

 

I hope it helps someone.

 

Regards

Mahmoud