I’m trying to use the Java wrapper and am getting this error.
java.lang.UnsatisfiedLinkError: no astra_jni in java.library.path
It’s fairly clear, the file is called libastra_jni not astra_jni, so the wrapper is clearly out of date.
where can I find the java wrapper source code for the current build so I can modify it and get running?
I’m using this SDK on Ubunutu 16.04, all the samples in bin run fine.
AstraSDK-v2.0.9-beta3-427db81acc-20180402T220618Z-Linux
Turns out I wasn’t right about the naming being wrong, but there are still issues.
This is what I did to allow java to find the libs.
I got the paths that the JVM was trying to load libraries from by calling System.out.println(System.getProperty(“java.library.path”));
I added the files from the java and lib directories in the SDK to one of the paths.
/usr/java/packages/lib/amd64$ sudo ln -s ~/Downloads/AstraSDK-v2.0.9-beta3-427db81acc-20180402T220618Z-Linux/java/* .
/usr/java/packages/lib/amd64$ sudo ln -s ~/Downloads/AstraSDK-v2.0.9-beta3-427db81acc-20180402T220618Z-Linux/lib/* .
I also still have to add these lines…
System.loadLibrary(“astra_core”);
System.loadLibrary(“astra”);