简体   繁体   中英

Problem with netbeans 9.0 on Manjaro Linux

I've been using Netbeans 8.2 on Manjaro Linux for a while with no problem at all. Today I made an update of my system and I found that it installed the new Netbeans 9.0 but since that I can't use my old 8.2 version. I tried to uninstall and re-install it with no results. So I decided to try to use the new version but everytime I try to open it by my desktop or menu icon nothing happen. So I tried to open it by command line and I get this message:

Cannot read cluster file: //etc/netbeans.clusters

I'm just using Netbeans for my thesis work so I'm not an expert at all, so I would really appreciate any help.

Had same problem with freshly updated netbeans. I noticed that I had netbeans.clusters file in /usr/etc/netbeans.clusters Just copied them to etc and netbeans started...

cp /usr/etc/netbeans.clusters /etc/netbeans.clusters

...but it recommended me to install nb-javac library and also it had some negative effect on my home directory (got all config files in there), so this might be only temporary solution.

This same issue was recently opened on the Arch Linux bugtracker, so I know why you have this problem: https://bugs.archlinux.org/task/60533

The doubled // is sort of suspicious, and furthermore, the file as installed by the package is in fact /usr/etc/netbeans.clusters -- which is identical except for the missing "usr" component. It turns out that this is set by the netbeans startup shell script by parsing the location of the shell script (using the dirname for $0 ) and considering that to be the root of your netbeans install. This needs to be equal to /usr in order to work properly. For reasons obvious to anyone who really groks shell, this shell script is terrible (as are most on the internet), but the important factor for you to consider is that it depends on how you ran it.

For some reason, you're running the program via /bin/netbeans instead of /usr/bin/netbeans . Probably because /bin is in your system $PATH , which is wrong and is a bug in your system.

The result is that the terrible netbeans shell script miscalculates the netbeans basedir as / instead of /usr , and miscalculates all resource files relative to the wrong location.

Yes it can be problem of update center you need to register NetBeans 8.2 update registry:
Ref 1 , Ref 2 , Ref 3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM