Actually, I generally recommend that you:
1. Uninstall Gnu java
2. Download and install the Sun JDK (which includes compiler, runtime and the NetBeans IDE).
At a minimum, I would *definitely* recommend configuring Java with "alternatives":
'Hope that helps .. PSM
I completely agree with arashi256: the Sun JDK is definitely the right choice. For many different reasons...