Blame SOURCES/brltty-6.3-loadLibrary.patch

0cd974
diff --git a/Bindings/Java/NativeComponent.java b/Bindings/Java/NativeComponent.java
0cd974
index 2e6304a..cf6c9b0 100644
0cd974
--- a/Bindings/Java/NativeComponent.java
0cd974
+++ b/Bindings/Java/NativeComponent.java
0cd974
@@ -23,7 +23,15 @@ public class NativeComponent extends Component {
0cd974
   private native static void initializeNativeData ();
0cd974
 
0cd974
   static {
0cd974
-    System.loadLibrary("brlapi_java");
0cd974
+    try {
0cd974
+         System.load( "/usr/lib64/brltty/libbrlapi_java.so" );
0cd974
+    } catch( UnsatisfiedLinkError e ) {
0cd974
+         try {
0cd974
+             System.load( "/usr/lib/brltty/libbrlapi_java.so" );
0cd974
+         } catch( UnsatisfiedLinkError f ) {
0cd974
+             throw new UnsatisfiedLinkError("brlapi_java library load failed");
0cd974
+         }
0cd974
+    }
0cd974
     initializeNativeData();
0cd974
   }
0cd974