To install Netbeans in Redhat Linux follow this step:

Download Netbeans sh file from http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-javase-linux.sh

after downloading, navigate to Downloads folder and give permission to the netbeans sh file with

chmod -R 777 netbeans-8.2-javase-linux.sh

then execeute following command to run installer

./netbeans-8.2-javase-linux.sh

It will install netbeans and alert you if any packages are needed like jdk and more.