Comment 2 for bug 1763091

Revision history for this message
pr.nizar (pr-nizar-deactivatedaccount) wrote :

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).