There are two primary ways to download and install NetBeans IDE. One is downloading a package file that combines JDK 8 and NetBeans. This combination allows for the development of applications on the Java platform.
To get this package, [download it from here][2].
Another way to get NetBeans is go download and install it directly from its download page. There, you have the option to download the complete package which contains, NetBeans Platform SDK, Java SE, Java FX, Java EE, Java ME, HTML5, C/C++, Groovy, PHP and Apache Tomcat 8.0.
There are five options of the package to download. Choose the package you wish to download and click the Download button.
To get these packages, visit [NetBeans download page][3].
### Install Java JDK first before installing NetBeans ###
Before you can install NetBeans, you must first install Java JDK. Without it, NetBeans won’t install. To lean how to install Java JDK, read [this post][4].
After installing Java JDK, continue below to install NetBeans.
If you chose the Oracle version, then JDK is already packaged into the file. All you have to do is run the executable to install both JDK and NetBeans.
Once you’ve downloaded the package you want, run the commands below to make the package executable.
chmod +x ~/Downloads/netbeans-8.0-linux*.sh
the commands above assume that the file was downloaded in your Downloads folder in Ubuntu
Next, run the commands below to begin the installation.
sh -c " ~/Downloads/netbeans-8.0-linux*.sh"
Follow the wizard until the installation is complete.