Install Netbeans IDE 6.5 for Ubuntu

Quick and Easy way to install Netbeans

Install Netbeans 6.5 - This downloads directly from It also configures Ubuntu rubygems to work inside Netbeans.

Download the Binaries

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.

Install netbeans:

cd /home/yourusername sudo sh ./

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):

cd /home/yourusername mkdir bin cd bin # Create a file called netbeans in the current dir and make its contents exactly as # follows in the next two lines and then save it and then quit your editor: #!/bin/bash /usr/local/netbeans-6.5/bin/netbeans # Make it executable chmod u+x netbeans # Put this in your path for this shell session # (add this line to your .bashrc or .zshrc file in /home/yourusername # to see the path in all future shells; be sure to exit the shell to see the changes though) export PATH=/home/yourusername/bin:$PATH # Run NetBeans! netbeans

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:

ln -s /usr/local/netbeans-6.5/bin/netbeans /usr/local/bin/netbeans

Missing Java

If the installer fails or cannot find the Java JDK, try

which java which javac

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:

sudo apt-get install sun-java6-bin sun-java6-jdk