Prereq: Install Java 8
Download and install Netbeans 8.2wget -c http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
Once downloaded, run the download:./netbeans-8.2-linux.sh
During installation, make sure you point the JDK for Netbeans IDE and glassfish to the Java 8 directory.