Exception in thread "main" java.lang.UnsatisfiedLinkError
17 views
Skip to first unread message
januarl
unread,
Aug 26, 2011, 7:38:56 AM8/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javacv
I got this exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users
\Januar\AppData\Local\Temp\jniopencv_core5188212359214343129.dll:
Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at com.googlecode.javacpp.Loader.load(Loader.java:337)
at com.googlecode.javacpp.Loader.load(Loader.java:271)
at com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:
126)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.googlecode.javacpp.Loader.load(Loader.java:291)
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:169)
at com.googlecode.javacpp.Loader.load(Loader.java:291)
at
com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:
91)
at imageprocessing.CVtest.smooth(CVtest.java:17)
at imageprocessing.CVtest.main(CVtest.java:26)
Java Result: 1
public class CVtest {
public static void smooth(String filename) {
IplImage image = cvLoadImage(filename);
if (image != null) {
cvSmooth(image, image, CV_GAUSSIAN, 3);
cvSaveImage(filename, image);
cvReleaseImage(image);
}
}
public static void main(String[] args) {
CVtest c = new CVtest();
CVtest.smooth("C:\\Users\\Public\\Pictures\\images2BW.jpg");
}
}
I've done several things :
Installed opencv 2.3.1
downloaded javacv 20110820
added the build\x86\vc10\bin\ to my system PATH
installed the C++ 2010 x86 redistributable 10.0.30319
installed the C++ 2010 x64 redistributable 10.0.30319
added the javacpp, javacv, and javacv-windows-x86.jar to my classpath
using netbeans
im using windows 7 64bit, but my JDK is 32bit.
am i doing something wrong here ?
Please help me..
Thanks for reading
Samuel Audet
unread,
Aug 26, 2011, 11:25:48 AM8/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jav...@googlegroups.com
On 2011-08-26 20:38, januarl wrote: > I've done several things : > Installed opencv 2.3.1 > downloaded javacv 20110820 > added the build\x86\vc10\bin\ to my system PATH > installed the C++ 2010 x86 redistributable 10.0.30319 > installed the C++ 2010 x64 redistributable 10.0.30319 > added the javacpp, javacv, and javacv-windows-x86.jar to my classpath > using netbeans > im using windows 7 64bit, but my JDK is 32bit. > > am i doing something wrong here ? > Please help me..
Yes, you forgot about tbb.dll
Samuel
Bicheng Cao
unread,
Aug 27, 2011, 9:13:38 PM8/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javacv
Hi Samuel,
I also got the same error with same steps done as januarl. The tbb.dll
is under build\x86\vc10\bin, I'm not sure how this can be missed.
Thanks.
Bicheng
Samuel Audet
unread,
Aug 27, 2011, 10:13:50 PM8/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jav...@googlegroups.com
On 2011-08-28 10:13, Bicheng Cao wrote: > Hi Samuel, > > I also got the same error with same steps done as januarl. The tbb.dll > is under build\x86\vc10\bin, I'm not sure how this can be missed.
Not with OpenCV 2.3.1, so this means you do not have OpenCV 2.3.1. Please redownload the "superpack" and make sure you get version 2.3.1 this time, thank you