Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse and JavaCV(Installation JavaCV)
Eclipse and JavaCV [message #943308] Sun, 14 October 2012 06:38 Go to next message
m j is currently offline m j
Messages: 1
Registered: October 2012
Junior Member
Hello,

Actually, i work with Opencv et Eclipse but i have a problem.

This my program test:

import static com.googlecode.javacv.cpp.opencv_core.*;
import static com.googlecode.javacv.cpp.opencv_imgproc.*;
import static com.googlecode.javacv.cpp.opencv_highgui.*;
        
public class test {

    /**
     * @param args
     */
    public static void main(String[] args) {

        IplImage image = cvLoadImage("SAM_0205.jpg");
        cvSmooth(image, image, CV_GAUSSIAN, 3);
        cvSaveImage("SAM_0205.jpg", image);
        cvReleaseImage(image);
    }
}



and this is my mistake:

Quote:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Sweet\AppData\Local\Temp\jniopencv_core8131980972511263774.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.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(Unknown Source)
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(Unknown Source)
at com.googlecode.javacpp.Loader.load(Loader.java:335)
at com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:91)
at test.main(test.java:13)


I have lastest version of JAVA and Eclipse IDE for Java Developers in 64bits.

For installation i look this video:

www.youtube.com/watch?v=b3WUItRh6k8&feature=relmfu

in my environement variables!

Quote:
CLASSPATH
c:\opencv\build\common\tbb\ia32\vc10; C:\opencv\build\x86\vc10\staticlib; %CLASSPATH;

PATH
C:\opencv\build\common\tbb\ia32\vc10;C:\opencv\build\x86\vc10\bin;


Course with OpenCV directories javaCV and at the root of c: \

I searched and I rechecked that I had the 64bit versions but apparently it just the way I installed opencv and javacv.

Can someone point me where can be the problem?

Thank you in advance.
Re: Eclipse and JavaCV [message #943537 is a reply to message #943308] Sun, 14 October 2012 12:26 Go to previous message
Stephan Herrmann is currently offline Stephan Herrmann
Messages: 927
Registered: July 2009
Senior Member
You shouldn't expect help on opencv in this forum.
I haven't the slightest idea what opencv is (nor do I expect that other JDT experts do).
Previous Topic:Problems During Content Assist (error on @ completion)
Next Topic:No Console output when generating Javadoc within Eclipse
Goto Forum:
  


Current Time: Wed Apr 23 02:43:36 EDT 2014

Powered by FUDForum. Page generated in 0.01587 seconds