What OS are you using? NetBeans tends to want to use the JDK you had installed when you first installed NetBeans; if you later delete that version of the JDK because you upgraded to a new one, NetBeans tends ot have issues. Check the etc/netbeans.conf file (inside the NetBeans installation directory), and verify that the netbeans_jdkhome property value is pointing to your JDK.