I installed Sun but I also have OpenJDK.I thought I installed sun....I think Ill uninstall all Java and reinstall it again and then reinstallnetbeans.