Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV unable to load library for a dynamic web project

I have OpenCV 2.4.5, and I am pretty sure I have setup the project correctly in Eclipse because I have a regular java project with the same settings which works with OpenCV libraries, but my Dynamic Web Project does not.

This is the code for both programs, the second one gets the error

java.lang.UnsatisfiedLinkError: no opencv_java245 in java.library.path java.lang.ClassLoader.loadLibrary(Unknown Source) java.lang.Runtime.loadLibrary0(Unknown Source) java.lang.System.loadLibrary(Unknown Source) facedetectServlet.doGet(facedetectServlet.java:103) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

Any insight would be helpful

OpenCV unable to load library for a dynamic web project

I have OpenCV 2.4.5, and I am pretty sure I have setup the project correctly in Eclipse because I have a regular java project with the same settings which works with OpenCV libraries, but my Dynamic Web Project does not.

This is the code for both programs, the second one gets the error

java.lang.UnsatisfiedLinkError: no opencv_java245 in java.library.path
 java.lang.ClassLoader.loadLibrary(Unknown Source)
 java.lang.Runtime.loadLibrary0(Unknown Source)
 java.lang.System.loadLibrary(Unknown Source)
 facedetectServlet.doGet(facedetectServlet.java:103)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

Any insight would be helpful