Check your NetBeans configuration (Tools > Java Platforms) for your real Java installation. Then, uninstall the JRE from the package manager, open up your ~/.bashrc in gedit/kwrite/whatever. Then add the following to the bottom:
Code:
export JAVA_HOME=/path/to/jdk/dir
export PATH=$PATH:$JAVA_HOME/bin
Save and logout/in.
If you're still having issues, download Sun's JDK from
http://java.sun.com (not the RPM version). Save it in /usr/java, and execute it (the .bin installer) there (as root):
It should extract itself. Then modify the bashrc to change JAVA_HOME to /usr/java/newJavaInstall. Additionally, make sure you uninstall any Java packages via apt/synaptic/whatever to avoid path conflicts.
Good luck!