I have Netbeans 10.0 installed on Ubuntu 18.04 in the /opt/netbeans
directory.
Netbeans 10.0 was installed just by extracting from zip file incubating-netbeans-10.0-bin.zip
downloaded using the command:
sudo wget http://mirrors.wuchna.com/apachemirror/incubator/netbeans/incubating-netbeans/incubating-10.0/incubating-netbeans-10.0-bin.zip
After extraction you will find netbeans
folder under /opt
directory. Issue the following extract command:
sudo unzip ~/Downloads/incubating-netbeans-10.0-bin.zip -d /opt/
After Netbeans extracted into /opt/netbeans
directory, a shortcut file netbeans.desktop
was created, edited and then installed at /usr/share/applications/
directory by the following command:
sudo desktop-file-install netbeans.desktop
The contents of netbeans.desktop
is:
The installed Java version on the desktop is JDK11
I have put Netbeans binary on PATH by running export PATH=$PATH:/opt/netbeans/bin
using ~/.bashrc
script file
-
When I click on the Netbeans icon on my desktop, there is just a flicker and the IDE never appeared and nothing happened
-
Nevertheless, when I run
netbeans
in a terminal, I get the following outputWARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.swing.plaf.gtk.ThemeValue (jar:file:/opt/netbeans/platform/modules/org-netbeans-swing-plaf.jar!/) to method javax.swing.plaf.synth.SynthStyle.getColorForState(javax.swing.plaf.synth.SynthContext,javax.swing.plaf.synth.ColorType) WARNING: Please consider reporting this to the maintainers of org.netbeans.swing.plaf.gtk.ThemeValue 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
Can somebody be kind enough to throw some light on this issue?
Thanks in advance.
Best Answer
It seems that the value of
Exec
in the desktop entry a.k.a. the "shortcut" contains an error. According to Desktop Entry Specification:Also,
UBUNTU_MENUPROXY
looks like a user-defined variable which doesn't work in Desktop Entries. So, better remove that and provide the absolute path of NetBeans, i.e.,