Closed sblantipodi closed 3 weeks ago
Hi @sblantipodi,
thanks for bringing this up. No, you are not doing anything wrong. It is unable to load the libayatana-appindicator-gtk3
shared library, although you have it installed. That leads to the java.lang.UnsatisfiedLinkError
you see.
I looked into this and noticed, that Fedora has a different layout to store its 64bit libraries. They are located in /usr/lib64
, not in /usr/lib
or a path mentioned in /etc/ld.so.conf.d/
, like other distributions like Arch Linux or the Debian family handle this.
I need to fix this in these Java bindings by adding /usr/lib64
to the library search path on library loading and create a new release of the bindings containing the fix.
As a workaround, you might consider to symlink the installed library like ln -s /usr/lib64/libayatana-appindicator3.so.1 /usr/lib/
.
Fixed with 6dbc6a4cdcff90ed7afae002b4328c7d086ec4bb, 224a4e5a8d7c267936c243dc73afba899e1a45ae and 8ddc2e5768591ffd7da7971423fe9f85c42f9ff6 and fixes released as Release 1.4.2.
Please agree to the following
Summary
Simple code sample on the wiki throws an exception.
What software is involved?
Fedora 41
OpenJDK 23
Classifier
libappindicator-full
Steps to Reproduce
I added this code to my Java FX app.
Expected Behavior
tray icon working
Actual Behavior
exception is thrown
Reproducibility
Always
Relevant Log Output
Anything else?
am I doing something wrong?