Install the prerequisites via the command line:
sudo apt-get install openjdk-7-jdk openjdk-7-jre
Note: This will take a while and you will have to respond yes ("y") to the questions.
Then download Netbeans from their site and run the installer. We use the PHP only version.
Note: the installer will probably be located in /home/[username]/Downloads. To run you may need to cd to the Downloads directory, change the permissions using the chmod command, and then run with "./[installer_name]".