本文介绍了javaCV UnsatisfiedLinkError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我下载了



我添加了.jar我的项目中的文件在ubuntu上的引用库中



我可以使用下载文件中找到的示例代码



但是错误是

 线程main中的异常java.lang.UnsatisfiedLinkError:/tmp/libjniopencv_core3835922554849797701.so:libopencv_core.so.2.4 :无法打开共享对象文件:没有这样的文件或目录
在java.lang.ClassLoader $ NativeLibrary.load(Native Method)
在java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
在java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
在java.lang.Runtime.load0(Runtime.java:787)
在java.lang.System.load( System.java:1022)
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:403)
com.googlecode.javacpp .Loader.load(Loader.java:342)
在com.googlecode.javacpp.Loader.load(Loader.java:316)
在com.googlecode.javacv.cpp.opencv_core。< clinit> ;(opencv_core.java:131)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:264)
at com。 (code)java.lang.Class
.forName0(Native Method)
java.lang.Class.forName(Class.java:264)
com.googlecode.javacpp.Loader.load(Loader.java:335)
在com.googlecode.javacv.cpp.opencv_highgui。< clinit>(opencv_highgui.java:91)
在com.googlecode.javacv.OpenCVFrameGrabber.start(OpenCVFrameGrabber.java:171)
在MotionDetector。 main(MotionDetector.java:23)

我如何解决问题?
如何在ubuntu 11.10上配置javaCV来解决问题。



感谢帮助

并添加库 opencv-linux-x86.jar 到你的项目


I have a problem with JavaCV.

I downloaded javaCV-bin

and i added .jar file in my project in references libraries on ubuntu

I could worked sample codes which locate in downloaded file

But error is

Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libjniopencv_core3835922554849797701.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
at java.lang.Runtime.load0(Runtime.java:787)
at java.lang.System.load(System.java:1022)
at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:403)
at com.googlecode.javacpp.Loader.load(Loader.java:342)
at com.googlecode.javacpp.Loader.load(Loader.java:316)
at com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.googlecode.javacpp.Loader.load(Loader.java:335)
at com.googlecode.javacv.cpp.opencv_imgproc.<clinit>(opencv_imgproc.java:96)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.googlecode.javacpp.Loader.load(Loader.java:335)
at com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:91)
at com.googlecode.javacv.OpenCVFrameGrabber.start(OpenCVFrameGrabber.java:171)
at MotionDetector.main(MotionDetector.java:23)

How can i solve the problem?How can i configure javaCV on ubuntu 11.10 for solving problem.

Thank for helping

解决方案

dude download library from link:

and add library opencv-linux-x86.jar to your project

这篇关于javaCV UnsatisfiedLinkError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-15 14:47