Skip to content

UnsatisfiedLinkError #4

Description

@synchronisator

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions