User avatar
freedomotic
Posts: 154
Joined: Sat Apr 21, 2012 3:59 pm
Location: Italy
Contact: Website

jna on raspberry

Mon Dec 30, 2013 5:00 pm

Hi all,
I'm using the last raspbian image. I have a problem with JNA. When I try to load a library with java I receive

at it.freedomotic.app.Freedomotic.start(Freedomotic.java:375)
at it.freedomotic.app.Freedomotic.main(Freedomotic.java:484)
Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path
at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:722)
at com.sun.jna.Native.loadNativeLibrary(Native.java:699)
at com.sun.jna.Native.<clinit>(Native.java:114)
at com.ftdi.FTD2XX.<clinit>(FTD2XX.java:127)
at com.ftdi.FTDevice.<clinit>(FTDevice.java:44)

I searched on google but didn't find a workround to solve the problem.
Any help?
Thanks
Freedomotic Open IoT Framework
http://freedomotic.com

User avatar
DougieLawson
Posts: 38510
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: jna on raspberry

Mon Dec 30, 2013 5:06 pm

sudo apt-get install libjna-java
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Java”