I tried to download the netbeans from the application store of Ubuntu 18.04.1 LTS and it went down without problems, but trying to open it was dying ugly and in the log file it generates that appears in /home/NOMBREDEUSUARIO/.netbeans/8.1/var/log
you could see the error message
java.lang.NullPointerException at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage (BaseAdaptor.java:123)
I searched the gringo stackoverflow but it came out that it was because I had Java 9 which does not apply since I have the OpenJDK 1.8.0_191