Blame SOURCES/brltty-6.3-loadLibrary.patch

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