Blame SOURCES/brltty-loadLibrary.patch

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