Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsatisfiedLinkError #4

Open
synchronisator opened this issue Oct 14, 2018 · 0 comments
Open

UnsatisfiedLinkError #4

synchronisator opened this issue Oct 14, 2018 · 0 comments

Comments

@synchronisator
Copy link

synchronisator commented Oct 14, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant