Thursday, August 29, 2013

Install Netbeans IDE on Ubuntu in three easy steps

Install Netbeans IDE on Ubuntu :

Step -1
Download sh file of Netbeans IDE from here according to your requirement.
If you want it for JAVA SE / EE or C/C++ or PHP or all. They have all options.
Download your desired sh file.

Step-2
Install openjdk on Ubuntu. Run following command.
sudo apt-get install openjdk-6-jdk

or
sudo apt-get install openjdk-7-jdk

Step-3
Now execute the downloaded sh file of Netbeans IDE.
sh /path/of/downloaded/sh-file.sh

Complete the wizard.

Note :
If third step gives you permission denied error, it means your downloaded sh file is not executable, make it executable using
chmod a+x /path/of/downloaded/sh-file.sh


Configure: error: xml2-config not found. Please check your libxml2 installation

Configure: error: xml2-config not found. Please check your libxml2 installation

If you find this error in CentOS, Fedora or RHEL,  Run
# yum install libxml2-devel

If you find this error in Ubuntu or Debian, Run
# apt-get install libxml2-dev


configure: error: Please reinstall the BZip2 distribution

configure: error: Please reinstall the BZip2 distribution

If you find this error in CentOS, Fedora or RHEL, Run
# yum install bzip2-devel

If you find this error in Ubuntu or Debian, Run
# apt-get install libbz2-dev