This is the answer
http://askubuntu.com/questions/689291/netbeans-8-0-2-freezing-at-startup-on-ubuntu-15-10-64bit/691652#691652
To make it work with OpenJDK 8, edit /etc/java-8-openjdk/accessibility.properties and comment out the line "assistive_technologies=org.GNOME.Accessibility.AtkWrapper", as suggested here: https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1510009.
In my case
sudo pico /etc/java-7-openjdk/accessibility.properties
This is the answer
http:// askubuntu. com/questions/ 689291/ netbeans- 8-0-2-freezing- at-startup- on-ubuntu- 15-10-64bit/ 691652# 691652
To make it work with OpenJDK 8, edit /etc/java- 8-openjdk/ accessibility. properties and comment out the line "assistive_ technologies= org.GNOME. Accessibility. AtkWrapper" , as suggested here: https:/ /bugs.launchpad .net/ubuntu/ +source/ openjdk- 8/+bug/ 1510009.
In my case
sudo pico /etc/java- 7-openjdk/ accessibility. properties