classic "UnsatisfiedLinkError: no jniopencv_core in java.library.path" - please help

2,239 views
Skip to first unread message

Stéphane TALLARD

unread,
Oct 12, 2014, 1:28:35 PM10/12/14
to javacpp...@googlegroups.com
Hi All,

I've got the classic error "java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path".

Unfortunatly the solutions proposed didn't help me to resolve the problem.

I've debugged the code to discover that javacv tries to find jniopencv_core.dll.

In the opencv distribution I have downloaded from the opencv site, I can't find jniopencv_core.dll.

I believe that http://vinurip.blogspot.fr/2014/03/jniopencvcoredll-cant-find-dependent.html is right It's a version problem between my javacv modules and the opencv downloaded from opencv.org.

 
Here is my configuration :
- platform windows-x86_64
- javacv modules downloaded with maven (I'have started from a pom found on the bytedeco site)
- from my maven pom :
      - org.bytedeco.javacpp-presets opencv in version 2.4.9-0.9
      - org.bytedeco.javacpp-presets ffmpeg in version 2.3-0.9
      - org.bytedeco javacv in version 0.9
- I've downloaded from opencv.org the 2.4.9. version (which doesn't contain jniopencv_core.dll)
- java version 1.8 in 64 bits.
- I've checked that in my path I've the correct opencv2.4.9superpack/opencv/build/x64/vc10/bin folder which contain the following dlls : opencv_calib3d249.dll opencv_contrib249.dll opencv_core249.dll  opencv_features2d249.dll opencv_ffmpeg249_64.dll opencv_flann249.dll opencv_gpu249.dll opencv_highgui249.dll opencv_imgproc249.dll opencv_legacy249.dll opencv_ml249.dll
opencv_nonfree249.dll opencv_objdetect249.dll opencv_ocl249.dll opencv_photo249.dll opencv_stitching249.dll opencv_superres249.dll opencv_video249.dll opencv_videostab249.dll

See my pom  attached for more details.

Thanks for your help ,
Stéphane

pom.xml

Samuel Audet

unread,
Oct 13, 2014, 5:47:28 AM10/13/14
to javacpp...@googlegroups.com
Hello,

On 10/13/2014 02:28 AM, Stéphane TALLARD wrote:
> In the opencv distribution I have downloaded from the opencv site, I
> can't find jniopencv_core.dll.

It's part of the distribution in this JAR file:
http://search.maven.org/remotecontent?filepath=org/bytedeco/javacpp-presets/opencv/2.4.9-0.9/opencv-2.4.9-0.9-windows-x86_64.jar

> I believe that
> http://vinurip.blogspot.fr/2014/03/jniopencvcoredll-cant-find-dependent.html
> is right It's a version problem between my javacv modules and the opencv
> downloaded from opencv.org.

We don't need to download the DLLs separately from opencv.org.

> Here is my configuration :
> - platform windows-x86_64
> - javacv modules downloaded with maven (I'have started from a pom found
> on the bytedeco site)
> - from my maven pom :
> - org.bytedeco.javacpp-presets opencv in version 2.4.9-0.9
> - org.bytedeco.javacpp-presets ffmpeg in version 2.3-0.9
> - org.bytedeco javacv in version 0.9
> - I've downloaded from opencv.org the 2.4.9. version (which doesn't
> contain jniopencv_core.dll)
> - java version 1.8 in 64 bits.
> - I've checked that in my path I've the correct
> opencv2.4.9superpack/opencv/build/x64/vc10/bin folder which contain the
> following dlls : opencv_calib3d249.dll opencv_contrib249.dll
> opencv_core249.dll opencv_features2d249.dll opencv_ffmpeg249_64.dll
> opencv_flann249.dll opencv_gpu249.dll opencv_highgui249.dll
> opencv_imgproc249.dll opencv_legacy249.dll opencv_ml249.dll
> opencv_nonfree249.dll opencv_objdetect249.dll opencv_ocl249.dll
> opencv_photo249.dll opencv_stitching249.dll opencv_superres249.dll
> opencv_video249.dll opencv_videostab249.dll
>
> See my pom attached for more details.

That looks alright, but unless you define the "platform.dependencies"
system property with a command line option like
"-Dplatform.dependencies=true" (as shown here
https://github.com/bytedeco/javacpp-presets/tree/master/opencv for
example), it won't download the file with the "windows-x86_64"
classifier, so you would need to add these additional dependencies some
other way.

Does that all make sense? Let me know! Thanks

Samuel

Stéphane TALLARD

unread,
Oct 29, 2014, 5:51:19 PM10/29/14
to javacpp...@googlegroups.com
Thank for your answer .


Actually  adding org.bytedeco.javacpp made the trick .

Cheers,
Stéphane
Reply all
Reply to author
Forward
0 new messages