make sure the console window is visible on net beans, if you are not getting any errors then most likely is your setup that's wrong