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
It will install Netbeans and alert you if any packages are needed like jdk and more.