How to install Netbeans on Linux

In this tutorial I want to show you how to install Netbeans on Linux. This tutorial is applicable in various Linux distributions such as Slackware, Ubuntu, Centos, Fedora, Redhat et cetera. The current stable version of Netbeans is Netbeans 6.8 but there is also a new beta version of Netbeans which has many new features and improvements than the previous one so in this tutorial we will use Netbeans 6.9 Beta.