I'm trying to use Java bindings for the project https://github.com/openalpr/openalpr
When I try to launch the java application i got this exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: no openalprjni in java.library.path
I try to load the library in this way:
System.loadLibrary("openalprjni");
The file named libopenalprjni.so it's in this dir
/Users/mario/Sviluppo/openalpr/src/bindings/java
so i'm trying, with eclipse, to load it with this configuration as a VM argument
-Djava.library.path=/Users/mario/Sviluppo/openalpr/src/bindings/java/ but nothing happens
What i'm doing wrong?
-Djava.library.path=/Users/mario/Sviluppo/openalpr/src/bindings/java/libopenalprjni.so? - Chetan KingerloadLibrary. Usually, something like this should be done by the openaplr classes internally. This may still cause the same error, though. Try putting all required files (including the openalph JAR, thelibopenalprjni.soand your actual test program) into the same directory (without a package), just to check whether it can load the library at all. - Marco13