java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path

381 views
Skip to first unread message

Refer

unread,
Feb 15, 2016, 7:01:25 PM2/15/16
to javacv
Hi, I'm trying to run the FaceRecognizer from GitHub / bytedeco / javacv / samples. But got the following error:

        Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:597)...

I did the following steps: 

  • Write the code.
  • Fix imports, added opencv.jar from javacv-bin.
  • Wrote 2 arguments (training faces and image to classify) to test it.
  • (what do i've forgot?)
I'm new in javaCv, so, i cannot understand at some steps. Please help me!

Refer

unread,
Feb 16, 2016, 9:15:13 PM2/16/16
to javacv
Done! Just needed to add opencv-windows-x86.jar which contains jniopencv_core.dll hehe :P I'm so glad that i solved it! But still problems there to fix, let's go!

VIKAS SINHA

unread,
Sep 22, 2017, 10:47:46 AM9/22/17
to javacv
Thank you so much. This helped me :)
Reply all
Reply to author
Forward
0 new messages