Hi there, you need JDK 8 from Oracle. Using OpenJDK can crash your
installation process:
Please check:
$ java -version
$ javac -version
make sure it Oracle java, else you can download Netbean that bundle with
JDK here (
http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-...
)
Then for installation, please chmod you installer as executable file first
(If you already hava Oracle JDK and want to use existing installer)
$ chmod a+x ./netbeans-8.2-linux.sh
$ ./netbeans-8.2-linux.sh
(if you use Netbean bundled with JDK)
$ chmod a+x jdk-8u171-nb-8_2-linux-x64.sh
$ ./jdk-8u171-nb-8_2-linux-x64.sh
No need to run installer as root, since I saw you run it as root #
If you interested to have multiple java / jdk, check my old blog post
https://robbinespu.github.io/eng/2018/03/21/Updating_java_with_alternativ...
I hope it help you installing netbeans