I'm having the same problem with a fresh Ubuntu 18.04 install. I installed netbeans through the command:
sudo apt install netbeans I had the same error: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release The netbeans package (https://packages.ubuntu.com/fr/bionic/netbeans) states that it has default-jdk as dependency which installs openjdk-11-jdk by default but the current netbeans version uses Java 8. I installed openjdk-8-jdk manually by: sudo apt-get install openjdk-8-jdk Then I used Java 8 as default Java version to use: sudo update-alternatives --config java sudo update-alternatives --config javac Now I don't have error messages but netbeans fails to start anyway. I attach to this the content of ~/.netbeans/8.1/var/log/messages.log As it seems Netbeans now fails because of the version of libequinox- osgi-java (https://bugs.debian.org/891957). ** Bug watch added: Debian Bug tracker #891957 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891957 ** Attachment added: "~/.netbeans/8.1/var/log/messages.log with errors regarding libequinox-osgi-java" https://bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1763091/+attachment/5131408/+files/messages.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1763091 Title: netbeans fails to start due to java9 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1763091/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
