<p style="text-align: justify;">
– There are diferent NetBeans IDE <a href="https://netbeans.org/downloads/index.html" target="_blank">download bundles</a> available. Download the desired bundle or download for all bundles. For the purpose of this post, I am downloading for ALL
</p>
<pre>sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
wget http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
chmod +x netbeans-8.2-linux.sh
./netbeans-8.2-linux.sh
<p style="text-align: justify;">
– Follow on-screen wizard to install your IDE
</p>