loading libgettextlib.so library does not work on fedora distro #312

Closed
opened 2025-12-20 10:40:18 +01:00 by andreibachim · 2 comments
andreibachim commented 2025-12-20 10:40:18 +01:00 (Migrated from github.com)

Hi,

I tried running the app template project on Fedora 43 but got the following error at startup

Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.domain.Example.main(Example.java:27)
Caused by: org.javagi.interop.InteropException: Cannot find libgettextlib.so
	at org.javagi.util.Intl.tryLoadLibraryVersions(Intl.java:93)
Caused by: org.javagi.interop.InteropException: Cannot find libgettextlib.so

I belive this is caused by the fact that on Fedora, libgettextlib.so is not located in /usr/lib/x86_64-linux-gnu, but in /lib64

Hi, I tried running the [app template project](https://github.com/jwharm/java-gi-app-template) on Fedora 43 but got the following error at startup ```java Exception in thread "main" java.lang.ExceptionInInitializerError at org.domain.Example.main(Example.java:27) Caused by: org.javagi.interop.InteropException: Cannot find libgettextlib.so at org.javagi.util.Intl.tryLoadLibraryVersions(Intl.java:93) Caused by: org.javagi.interop.InteropException: Cannot find libgettextlib.so ``` I belive this is caused by the fact that on Fedora, `libgettextlib.so` is not located in` /usr/lib/x86_64-linux-gnu`, but in `/lib64`
jwharm commented 2025-12-21 12:41:44 +01:00 (Migrated from github.com)

Thanks for trying out the template!

I will add /lib64 and a few other common library directories, and also change the app template to gracefully handle this.

Thanks for trying out the template! I will add `/lib64` and a few other common library directories, and also change the app template to gracefully handle this.
jwharm commented 2025-12-21 12:55:43 +01:00 (Migrated from github.com)

App template now has improved error handling.

Additional directories were added to the Intl class (d1a2cfe). This will be available in the next java-gi release.

App template now has improved error handling. Additional directories were added to the Intl class (d1a2cfe). This will be available in the next java-gi release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
java-gi/java-gi#312
No description provided.