2021-02-02 10:16:11 +00:00
|
|
|
diff --git a/Bindings/Java/NativeComponent.java b/Bindings/Java/NativeComponent.java
|
|
|
|
index 2e6304a..cf6c9b0 100644
|
|
|
|
--- a/Bindings/Java/NativeComponent.java
|
|
|
|
+++ b/Bindings/Java/NativeComponent.java
|
|
|
|
@@ -23,7 +23,15 @@ public class NativeComponent extends Component {
|
|
|
|
private native static void initializeNativeData ();
|
2012-12-12 14:52:40 +00:00
|
|
|
|
|
|
|
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");
|
|
|
|
+ }
|
2019-02-25 14:40:29 +00:00
|
|
|
+ }
|
2021-02-02 10:16:11 +00:00
|
|
|
initializeNativeData();
|
2012-12-12 14:52:40 +00:00
|
|
|
}
|
2021-02-02 10:16:11 +00:00
|
|
|
|