0
votes

I am trying to write a test program using Java CV. This is the error I am getting.

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Users\neel\AppData\Local\Temp\javacpp28164099778499\jniopencv_core.dll: Can't find dependent libraries

Can anyone please help me?

2
Have you set up your class path to recognize the libraries that you're using? - Hovercraft Full Of Eels
I am a beginner in Java CV.Here is what I did. I downloaded the JavaCV 0.9 and Open CV 2.4.9. I extracted both in my C:\\ What are the steps after this? - Debayan Severus Chakraborty
It all depends on how you're compiling and running your program. Are you running via an IDE or command line? - Hovercraft Full Of Eels

2 Answers

1
votes

You have several ways to make the .dll accessible:

  • Load the .dll explicitly in the source code:

    System.load("C:\Users\neel\AppData\…\jniopencv_core.dll");
    
  • Specify the java.library.path on the java command line by using the -D option:

    java -Djava.library.path="C:\Users\neel\AppData\…\jniopencv_core.dll" …
    
  • Place your .dll in a directory that is in the system property, java.library.path.

0
votes

I have solved the problem. Thank you friends. Apparently,the version and OpenCv and JavaCv should match. Thank you !