Blame SOURCES/brltty-loadLibrary.patch

510c49
diff --git a/Bindings/Java/Native.java b/Bindings/Java/Native.java
510c49
index 8a3b003..c404bf2 100644
510c49
--- a/Bindings/Java/Native.java
510c49
+++ b/Bindings/Java/Native.java
510c49
@@ -21,7 +21,15 @@ package org.a11y.BrlAPI;
510c49
 
510c49
 public class Native {
510c49
   static {
510c49
-    System.loadLibrary("brlapi_java");
510c49
+    try {
510c49
+         System.load( "/usr/lib64/brltty/libbrlapi_java.so" );
510c49
+    } catch( UnsatisfiedLinkError e ) {
510c49
+         try {
510c49
+             System.load( "/usr/lib/brltty/libbrlapi_java.so" );
510c49
+         } catch( UnsatisfiedLinkError f ) {
510c49
+             throw new UnsatisfiedLinkError("brlapi_java library load failed");
510c49
+         }
510c49
+     }
510c49
   }
510c49
 
510c49
   protected long handle;