9db6482e66
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/brltty#1aef6309eb48bb473b4443310cee6cd55fe2cf8d
22 lines
697 B
Diff
22 lines
697 B
Diff
diff --git a/Bindings/Java/NativeLibrary.java b/Bindings/Java/NativeLibrary.java
|
|
index 5780e34..8383821 100644
|
|
--- a/Bindings/Java/NativeLibrary.java
|
|
+++ b/Bindings/Java/NativeLibrary.java
|
|
@@ -26,7 +26,15 @@ public class NativeLibrary {
|
|
}
|
|
|
|
static {
|
|
- System.loadLibrary("brlapi_java");
|
|
+ try {
|
|
+ System.load( "/usr/lib64/brltty/libbrlapi_java.so" );
|
|
+ } catch( UnsatisfiedLinkError e ) {
|
|
+ try {
|
|
+ System.load( "/usr/lib/brltty/libbrlapi_java.so" );
|
|
+ } catch( UnsatisfiedLinkError f ) {
|
|
+ throw new UnsatisfiedLinkError("brlapi_java library load failed");
|
|
+ }
|
|
+ }
|
|
new NativeLibrary().initializeNativeData();
|
|
}
|
|
}
|