Unable to load opencv jar
I am trying to load opencv jar file into dynamic web project of java EE but i'm unable to load opencv
i'm trying to load using static block
static{ System.loadLibrary("opencv_java2413"); }
as well as i tried with
static{ System.load("opencv_java2413"); }
how can i configure opencv with java EE project
The open cv native libraries(c++) cannot be found. check https://opencv-java-tutorials.readthe... And search and try to understand "java.library.path"
i'm read that already and follow the same procedure but still it is showing me same error
What opencv version are you using - you code tries to find the native libs for 2413, in my code i am using:
This way i am sure i am loading the correct native libraries. To track down your problem, Try write a small java programm using opencv(with main method) and try to execute it from command line. If you got this working, just adopt it for your javaee container.
I also spent some time on this "problem". Its just some config stuff. Note thats there a big difference between System.load and System.loadLibrary. One is expecting a full path, the other not(don't remember which does what).Please read javadoc for this.