Install Javacv and opencv o Windows

725 views
Skip to first unread message

Menegussi

unread,
Mar 31, 2013, 7:20:57 PM3/31/13
to jav...@googlegroups.com
Hi!

I have the opencv2.2, javacv and Eclipse on Windows 7 and all work fine!

Now I'm installing, in another computer with Windows 8, and I have the followed message when i run the program:

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\AndreW.M\AppData\Local\Temp\jniopencv_core5538018260107553126.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
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(Unknown Source)
at com.googlecode.javacpp.Loader.load(Loader.java:291)
at com.googlecode.javacpp.Loader.load(Loader.java:271)
at com.googlecode.javacv.cpp.opencv_core$CvRect.<clinit>(opencv_core.java:1779)
at processamento.ImageEffect.<init>(ImageEffect.java:82)
at processamento.CapturaTeste.main(CapturaTeste.java:66)

Below I describe what I made:


1- Unzip OpenCV 2.4.4 (only unzip, nothing installed like OpenCV2.2
2- Unzip javacv-0.4-bin 
3- CLASSPTATH with:  D:\OpenCVJavaCV\opencv\build\x64\vc10\bin;D:\OpenCVJavaCV\javacv-0.4-cppjars\javacv-cppjars
4- Added External Jars in the project, locates at javacv-0.4 bin

Can you help me?

Thanks!

Andr´´e

André Menegussi

unread,
Apr 2, 2013, 7:49:20 AM4/2/13
to jav...@googlegroups.com
Can Somebody  help me about this? 

Thanks!

André


2013/3/31 Menegussi <amene...@gmail.com>

--
 
---
You received this message because you are subscribed to the Google Groups "javacv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javacv+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Adile Idoumajoud

unread,
Apr 2, 2013, 2:17:26 PM4/2/13
to jav...@googlegroups.com
did you reboot the computer?

André Menegussi

unread,
Apr 2, 2013, 3:11:24 PM4/2/13
to jav...@googlegroups.com
Hi!

Yes, I did it many times!

Do you have any suggestion?

Thanks!

André


2013/4/2 Adile Idoumajoud <aidou...@gmail.com>

Adile Idoumajoud

unread,
Apr 2, 2013, 3:13:07 PM4/2/13
to jav...@googlegroups.com

Did you try the lastest version of opencv? In m'y memory is 2.4.4 or 2.4.2

You received this message because you are subscribed to a topic in the Google Groups "javacv" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/javacv/L-WtCKJ4KMc/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to javacv+un...@googlegroups.com.

André Menegussi

unread,
Apr 2, 2013, 4:21:30 PM4/2/13
to jav...@googlegroups.com
Yes, I did! i'm using opencv 2.4.4. But I don't know if I was installed correctly. I just unzipped the file containg the opencv. In opencv 2.2 version, I installed with a .exe that was registred in windows registry.

I don't know if I did something wrong. I'm not sure if my javacv is 64 or 32 bits, because I just unzipped it too!.

Thanks
André

Adile Idoumajoud

unread,
Apr 2, 2013, 4:30:26 PM4/2/13
to jav...@googlegroups.com

Re-download it and put it at  C:/opencv/

Then add it to your path

André Menegussi

unread,
Apr 2, 2013, 5:55:24 PM4/2/13
to jav...@googlegroups.com
I put the opencv in D:\OpenCV\opencv2.4.4. Is it a problem?

André

Samuel Audet

unread,
Apr 6, 2013, 5:13:47 AM4/6/13
to jav...@googlegroups.com
On 04/01/2013 08:20 AM, Menegussi wrote:
> 1- Unzip OpenCV 2.4.4 (only unzip, nothing installed like OpenCV2.2
> 2- Unzip javacv-0.4-bin
> 3- CLASSPTATH with:
> D:\OpenCVJavaCV\opencv\build\x64\vc10\bin;D:\OpenCVJavaCV\javacv-0.4-cppjars\javacv-cppjars
> 4- Added External Jars in the project, locates at javacv-0.4 bin

Which JAR files are in your CLASSPATH exactly? It looks like
opencv-2.4.4-windows-x86.jar and opencv-2.4.4-windows-x86_64.jar are
missing. Please add them to your CLASSPATH as instructed in the
README.txt file and let us know how that goes...

Samuel

André Menegussi

unread,
Apr 8, 2013, 12:21:41 AM4/8/13
to jav...@googlegroups.com
Hi Samuel,
The files opencv-2.4.4-windows-x86.jar and opencv-2.4.4-windows-x86_64.jar and in  the D:\OpenCVJavaCV\javacv-0.4-cppjars\javacv-cppjars directory. This directory is in my CLASSPATH. See in the previous message!!

Do I make any mistake or I'm not doing something else?

Thanks!

André


2013/4/6 Samuel Audet <samuel...@gmail.com>


Samuel

--

--- You received this message because you are subscribed to the Google Groups "javacv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javacv+unsubscribe@googlegroups.com.

Samuel Audet

unread,
Apr 9, 2013, 8:59:42 AM4/9/13
to jav...@googlegroups.com
On 04/08/2013 01:21 PM, Andr� Menegussi wrote:
> Hi Samuel,
> The files opencv-2.4.4-windows-x86.jar and
> opencv-2.4.4-windows-x86_64.__jar and in the
> D:\OpenCVJavaCV\javacv-0.4-cppjars\javacv-cppjars directory. This
> directory is in my CLASSPATH. See in the previous message!!
>
> Do I make any mistake or I'm not doing something else?

I never said to put the directory containing the JAR files in your
CLASSPATH, I said to put the JAR files themselves in your CLASSPATH, as
explained in Java's documentation here:
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/classpath.html

Samuel

André Menegussi

unread,
Apr 9, 2013, 9:22:12 AM4/9/13
to jav...@googlegroups.com
Ok Samuel! I understood wrong! Sorry! :)

André





2013/4/9 Samuel Audet <samuel...@gmail.com>


Samuel

André Menegussi

unread,
Apr 9, 2013, 10:00:38 AM4/9/13
to jav...@googlegroups.com
Hi Samuel, sorry I'm newbie in java and javacv/opencv.

In javacv (using OpenCV 2.2) I have a directory with avcode-xx.dll files. I downloaded this files from the website.

I'n not finding these files in the installation of OpenCV 2.4.4. Is it normal?

Thanks,

André


2013/4/9 Samuel Audet <samuel...@gmail.com>


Samuel

Samuel Audet

unread,
Apr 14, 2013, 2:53:20 AM4/14/13
to jav...@googlegroups.com
On 04/09/2013 11:00 PM, Andr� Menegussi wrote:
> Hi Samuel, sorry I'm newbie in java and javacv/opencv.
>
> In javacv (using OpenCV 2.2) I have a directory with avcode-xx.dll
> files. I downloaded this files from the website.
>
> I'n not finding these files in the installation of OpenCV 2.4.4. Is it
> normal?

Yes, they are available here as indicated in the README.txt file:
http://code.google.com/p/javacv/downloads/list

André Menegussi

unread,
Apr 14, 2013, 6:32:37 PM4/14/13
to jav...@googlegroups.com
Hi Samuel, 
Sorry about this question again, but in the http://code.google.com/p/javacv/downloads/list I not found the avcodec-xx.dll in any zipped file! I read the readme.txt and I'm not knowing how to do that!

Thanks in advance!.
André


2013/4/14 Samuel Audet <samuel...@gmail.com>

Samuel Audet

unread,
Apr 14, 2013, 9:22:00 PM4/14/13
to jav...@googlegroups.com
On 04/15/2013 07:32 AM, Andr� Menegussi wrote:
> Sorry about this question again, but in the
> http://code.google.com/p/javacv/downloads/list I not found the
> avcodec-xx.dll in any zipped file! I read the readme.txt and I'm not
> knowing how to do that!

Just download all the ZIP files and put all the JAR files in your
CLASSPATH: That will work :)

André Menegussi

unread,
Apr 14, 2013, 11:30:39 PM4/14/13
to jav...@googlegroups.com
Ok, I'll try!

I'm thinking like Opencv 2.2 and javacv instalation!! :)

After I'll let know!

Thanks!!

André


2013/4/14 Samuel Audet <samuel...@gmail.com>
Reply all
Reply to author
Forward
0 new messages