java no XXX in djava.library.pathh怎么配置

jni - how to set java library path for processing - Stack Overflow
to customize your list.
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
J it only takes a minute:
Join the Stack Overflow community to:
Ask programming questions
Answer and help your peers
Get recognized for your expertise
I'm using PDE to run a Processing sketch, and I get the following error:
Verify that the java.library.path property is correctly set.
Could anyone of you tell me how to solve this problem?
2,60011838
9,1792066108
You can set it on the command line thus:
java -Djava.library.path=...
and point it to the directory containing the relevant library.
177k19225322
In Eclipse, I did this to get OpenCV working:
In the Run menu, select Run Configuration.
Go to the (x)=Arguments tab of your sketch.
Add this in the VM arguments field:
-Djava.library.path="/path/to/OpenCV/library"
2,60011838
Before System.loadLibrary(""), use the following code to check you java.library.path
System.out.println(System.getProperty("java.library.path"));
Generally,the java.library.path=/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
Provides several options for:
$ sudo cp libxxx.so /usr/lib/jni
java -Djava.library.path=path of so
Your library.path is fine, what you need to do is to drop
prefix "lib" and suffix ".so" from your System.loadLibrary( "..." );
on linux or "linux-android" those will be automatically added by JVM
Boris Tkachenko
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabled抱歉,您要访问的页面不存在或被删除!
5秒后将自动跳转到新浪博客首页。
1.请检查输入的网址是否正确。
2.如果不能确认输入的网站,请浏览查看所要访问的网址。
3.直接输入要访问的内容进行搜索:
如还有疑问请联系新浪客服:致电java no XXX in java.library.path怎么配置_百度知道
java no XXX in java.library.path怎么配置
提问者采纳
: 不建议把JAVA安装到系统的目录。,如不要安装到C。。。。。:&#92。。。;Program Files或那个X86的。。。
知道智能回答机器人
我是知道站内的人工智能,可高效智能地为您解答问题。很高兴为您服务。
其他类似问题
为您推荐:
java的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 djava.library.path 的文章

 

随机推荐