h0ru5 / neopixel-java

JNI bindings to access adafruit neopixels on a raspi
MIT License
3 stars 2 forks source link

UnsatisfiedLinkError #4

Open synchronisator opened 5 years ago

synchronisator commented 5 years ago

Hi, i try to get the code running, but i get following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.jna.Native.pointerSize()I at com.sun.jna.Native.pointerSize(Native Method) at com.sun.jna.Native.(Native.java:88) at com.sun.jna.NativeLibrary.(NativeLibrary.java:55) at com.github.h0ru5.neopixel.LibneopixelLibrary.(LibneopixelLibrary.java:15) at com.github.h0ru5.neopixel.NeopixelsImpl.(NeopixelsImpl.java:5) at com.github.h0ru5.neopixel.DemoRunner.main(DemoRunner.java:10)

My call: java -Djava.library.path=./neopixel-java/src/dist/ -cp test.jar:./neopixel-java/build/libs/neopixel-java-1.0-SNAPSHOT.jar:./jna-3.0.9.jar com.github.h0ru5.neopixel.DemoRunner

I made a link to get the libjnidispatch.so in the right place:

sudo -s ln -s /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch.system.so /usr/lib/jvm/default-java/jre/lib/arm/libjnidispatch.so

I installed rpi_ws281x and java-jni. But i cant get this up and running. Trying now for two days, i assumed, that i need help... Thank you

Edit: Tried this on rasbian stretch lite and ubuntu mate for raspberry pi.