nawara
nawara

Reputation: 1167

Exception in thread "main" java.lang.UnsatisfiedLinkError: no libopencv_java247 in java.library.path

In oder to create a simple opencv java project I folled this tutorial step by step but

when I run the associated exemple I get the folowwing error :

Exception in thread "main" java.lang.UnsatisfiedLinkError: no libopencv_java247 in java.library.path

EDIT

I read all similar questions and I try those solutions

--

-Djava.library.path=/home/noura/Desktop/opencv/build/lib/

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/noura/Desktop/opencv/build/lib

but the problem is not solved

Upvotes: 1

Views: 671

Answers (1)

nawara
nawara

Reputation: 1167

just I should write

System.loadLibrary("opencv_java247");

instead of

System.loadLibrary("libopencv_java247");

Upvotes: 2

Related Questions