I’m using OH2 on a Synology DS216+ II (x86, DSM 6.0.3). Whatever version of OH2 I use I always get the following erroe message when trying to use the Systeminfo Binding (OH 2 version):
Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR Could not initialize class oshi.jna.platform.linux.Udev
Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR Unable to load library ‘udev’: Native library (linux-x86-64/libudev.so) not found in resource path (.:/var/packages/Java8/target/j2sdk-image/jre/lib:/volume1/@appstore/openHAB2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.1.2.jar:/volume1/@appstore/openHAB2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.1.2.jar:/volume1/@appstore/openHAB2/runtime/lib/boot/org.apache.karaf.main-4.1.2.jar:/volume1/@appstore/openHAB2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
I’ve tried to locate the “libudev.so” but is does not seem to be installed.
Systeminfo
Sample thing for systeminfo Binding
Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR Could not initialize class oshi.jna.platform.linux.Udev
OK!
Thanks for the tip. I think I have tried this already but I will check once again when I have the opportunity to sit down with the RPi. I might have forgotten a dash or a dot somewhere.
Thanks for the tip but on my Openhabianpi I still get the same error message:
java.lang.UnsatisfiedLinkError: Unable to load library ‘udev’: Native library (linux-arm/libudev.so) not found in resource path (/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.1.3.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.1.3.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.1.3.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar)
I thought that the 2.2.10 official realease for synology would solve this issue, but no change. Does anyone know, what the correct “EXTRA_JAVA_OPTS=” addition for x86 (Intel) Synology would be?
OK! Problem solved!
An update from 2.0.0 build 1109 to build 1169 solved the issue. Now the binding is initialising properly and measurements are flowing. The EXTRA_JAVA_OPTS=" line is still in /etc/default/openhab2 as described above.
On my DS718+ I would add the line to the file /volume1/@appstore/openHAB/runtime/bin/setenv.
However, since the file libudev.so seems to be missing on my Diskstation there is no point in trying it
Not me. I thought maybe with OH 2.3, but no change. Meanwhile I read, that Systeminfo binding uses the OSHI API to access the information. I tried to see how to install/verify it, but no success so far.
Then you can either use a symlink or use a Java option, I have not tested the symlink but it should work if you do this. You do not need to do both, it is one or the other…