02fc202d01
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/brltty.git#b952485c37f1aae3b6088ca8f33b87ac146711c7
22 lines
754 B
Diff
22 lines
754 B
Diff
diff --git a/Bindings/Java/NativeComponent.java b/Bindings/Java/NativeComponent.java
|
|
index 2e6304a..cf6c9b0 100644
|
|
--- a/Bindings/Java/NativeComponent.java
|
|
+++ b/Bindings/Java/NativeComponent.java
|
|
@@ -23,7 +23,15 @@ public class NativeComponent extends Component {
|
|
private native static void initializeNativeData ();
|
|
|
|
static {
|
|
- System.loadLibrary("brlapi_java");
|
|
+ try {
|
|
+ System.load( "/usr/lib64/brltty/libbrlapi_java.so" );
|
|
+ } catch( UnsatisfiedLinkError e ) {
|
|
+ try {
|
|
+ System.load( "/usr/lib/brltty/libbrlapi_java.so" );
|
|
+ } catch( UnsatisfiedLinkError f ) {
|
|
+ throw new UnsatisfiedLinkError("brlapi_java library load failed");
|
|
+ }
|
|
+ }
|
|
initializeNativeData();
|
|
}
|
|
|