I unable to create java project using netbeans 8.2 on my Ubuntu. Then i decided to install java plugin using Tools > plugins but the GUI said that the plugin need JDK.
I opened netbeans configuration inside /usr/local/netbeans-8.2/etc directory and i found that netbeans is using jre like this: netbeans_jdkhome="/usr/local/netbeans-8.2/bin/jre". I looked at /usr/lib/jvm and i realized that the required JDK by Netbeans is not there. Then i need to install it and this is my step to installing JDK 8 on ubuntu 18.04.