So I think I’ve done everything correctly, but I’m at a loss.
When openhab starts up and loads my items file it says:
2016-03-04 04:47:40.905 [INFO ] [runtime.busevents ] - Motion1 state updated to OPEN
Exception in thread “openHAB GPIO event listener (pin 7)” java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
at org.openhab.io.gpio.linux.LibC.(LibC.java:54)
at org.openhab.io.gpio.linux.GPIOPinLinux$EventListener.run(GPIOPinLinux.java:652)
I copied the addons:
org.openhab.io.gpio
org.openhab.binding.gpio
i added this to start.sh:
Djna.boot.library.path=/usr/lib/jni
I have this in openhab.cfg:
gpio:sysfs=/sys
gpio:debounce=10
I have this in my item configuration:
Contact Motion1 “LR Motion” (Internal){ gpio=“pin:7 activelow:yes” }
in the instructions on the wiki it says to install native jna 3.2.7, but there doesn’t seem to be any instruction for this, does anyone know what I’m missing here?