
Follow the steps below to install Netbeans and Java in Ubuntu.
Neatbeans is a popular Integrated Development Enviroment for creating Java applications.
We will use the Terminal (the black window) as this keeps it simple.
First enter the following into the Terminal window:
sudo gedit /etc/apt/sources.list
The sources.list file contains all the places (Repositories) where programs are stored by the makers.
Once you have entered the above command and hit Enter, make sure all of the following lines are contained within it, and if not add each indervidual one:
deb http://za.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://za.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb http://za.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://za.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
Once you have made sure they are all there, click Save. You shouldn't have any issues with Permissions as we used 'sudo' in the first command.
Now enter this into the Terminal and press Enter:
sudo apt-get update
This will update your installation of Ubuntu with the latest available programs available from within the various repositories.
Now enter:
sudo apt-get install sun-java6-jdk sun-java6-plugin
This will install the Java Development Kit, which is needed to create your Java programs. Do not worry if you already have Java installed for doing things like watching YouTube videos, this is the Development Kit, not just the 'player'.
Now lets install Netbeans! Enter the following into the Terminal:
sudo apt-get install netbeans
Thats it! You should now have both the Development Kit for Java installed and the Netbeans IDE
Sometimes when performing these types of actions, you may get message warnings saying things like other packages will also be installed to support the actual program you want installed. Don't worry too much, these are called Dependencies, think of them like you would a house's foundations, you need the foundations built before you can build the house, else it will fall down!
To start using Netbeans, you should now be able to go Applications>Programming>Netbeans in your Ubuntu menu.
Sometimes though, newly installed programs may be missing, if this happens try logging out and then back in. See if your programs now showing in the menus.