线程"main"中的异常java.lang.UnsatisfiedLinkError:java.library.path中没有openalprjni [英] Exception in thread "main" java.lang.UnsatisfiedLinkError: no openalprjni in java.library.path

查看:64
本文介绍了线程"main"中的异常java.lang.UnsatisfiedLinkError:java.library.path中没有openalprjni的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为项目使用Java绑定 https://github.com/openalpr/openalpr

I'm trying to use Java bindings for the project https://github.com/openalpr/openalpr

当我尝试启动Java应用程序时,出现了此异常

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");

名为 libopenalprjni.so 的文件位于此目录

/Users/mario/Sviluppo/openalpr/src/bindings/java

所以我正在尝试使用Eclipse将这种配置作为VM参数加载 -Djava.library.path =/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

我做错了什么?

推荐答案

包括openalpr.dll和从二进制文件到JRE或JDK bin目录中所需的所有其他dll文件.然后尝试编译并运行您的程序.为我工作.

Include the openalpr.dll and the required all other dll files from the binaries to your JRE or JDK bin directory. Then try to compile and run your program. Worked for me.

这篇关于线程"main"中的异常java.lang.UnsatisfiedLinkError:java.library.path中没有openalprjni的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆