I have just installed Netbeans 8.0.2 on CentOS 6.5.
When I try to run it, I get the message
Cannot find java. Please use the --jdkhome switch
I do recommend you to change the configuration of JDK used by NetBeans in netbeans.conf config file:
netbeans.conf
netbeans_jdkhome="C:\Program Files\Java\..."