Blame SOURCES/brltty-loadLibrary.patch

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