Install Netbeans 6.5 - This downloads directly from www.netbeans.org. It also configures Ubuntu rubygems to work inside Netbeans.
You can get the binaries at the NetBeans download page. Download the appropriate version depending on what language(s) you want to develop in. I chose Java. Download the file and save it to your home directory, /home/yourusername.
Create a script to run netbeans (skip this if you want to invoke it from Applications -> Programming -> NetBeans IDE 6.5 in the Ubuntu menu bar):
Alternatively, you can just add /usr/local/netbeans-6.5/bin to your PATH, or you can run the following if you don't even want to mess with your PATH:
If the installer fails or cannot find the Java JDK, try
If those both return values, perhaps the installer missed them and you can browse for them manually yourself in the installer. If one of those does not return a value, you need to install Java:
Ubuntu Downloads Information