I have this in my terminal for checking
martin@martin:~$ sudo update-alternatives --config java
There is 1 choice for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
* 1 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
Press <enter> to keep the current choice[*], or type selection number:
martin@martin:~$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Still my netbeans 8.1 is not starting up it is only starting up until reading modules and I dont know what is the error.
Also I added
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
In netbeans.conf As it was an accepted in a post but it didnt work for me.
I already tried uninstalling and installing a couple of times but it still didnt work.
I am out of idea right now and I hope some one will point me to the right direction
UPDATE
martin@martin:~$ javac -version
javac 1.8.0_131
tried to run
martin@martin:~$ sudo chown -R martin:martin ~/.cache/netbeans
[sudo] password for martin:
martin@martin:~$
from this this still didnt work
reading module storage
– guradio Oct 16 '17 at 03:57