diff options
Diffstat (limited to 'java/tinyb/dbus/DBusObject.java')
-rw-r--r-- | java/tinyb/dbus/DBusObject.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/java/tinyb/dbus/DBusObject.java b/java/tinyb/dbus/DBusObject.java index 66cdde30..b714d4c2 100644 --- a/java/tinyb/dbus/DBusObject.java +++ b/java/tinyb/dbus/DBusObject.java @@ -38,13 +38,7 @@ public class DBusObject implements BluetoothObject private boolean isValid; static { - try { - System.loadLibrary(BluetoothFactory.JavaNativeLibBasename); - } catch (final Throwable e) { - System.err.println("Failed to load native library "+BluetoothFactory.JavaNativeLibBasename); - e.printStackTrace(); - throw e; // fwd exception - end here - } + BluetoothFactory.checkInitialized(); } static BluetoothType class_type() { return BluetoothType.NONE; } |