Installing Netbeans on Ubuntu has become an easy task now. Gone are the days when everything on Linux was so difficult, I know I am too late to say this. Well to install Netbeans follow the steps below.
You need to have Java installed in your system, so if your system has Java installed then skip the steps to install java and process further. To test Java installation, try the following command.
java -version
If you get the version number of Java then its installed on your system, otherwise you need to install Java before installing Netbeans, as following :
1) Install JDK
sudo apt-get install sun-java6-jdk
2) Install JRE
sudo apt-get install sun-java6-jre
When these two are installed successfully, type “java -version” to verify if the install was successful.
3) Now browse to Desktop by typing “cd ~Desktop” and type the following command to download the Netbeans 6.9 version from the server.
wget http://download.netbeans.org/netbeans/6.9.1/final/bundles/netbeans-6.9.1-ml-php-linux.sh
Alternatively, You can download Netbeans directly from the download page and save the file on desktop.
4) When the file is saved on Desktop type the following command to initiate the setup.
sudo sh netbeans-6.9.1-ml-php-linux.sh
Setup will run and Netbeans will be installed.
Hope that helps.
Stay Digified !!
Sachin Khosla