Blame SOURCES/brltty-loadLibrary.patch

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