OpenCV on web app, NoClassDefFoundError

asked 2015-04-28 11:56:17 -0600

prostykoks gravatar image

Hi,

Currently i'm developing web app and i decided to use openCV library to use neural network. When i run my test controller which look like this:

@RequestMapping(value = "/test/neural/network", method = RequestMethod.GET)
public void test() {
    System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
    Mat output = new Mat(1, 20, CvType.CV_32SC1);
    System.out.println(output);
}

I had following error: Caused by: java.lang.NoClassDefFoundError: org/opencv/core/CvType

I'm using eclipse and configure environment step by step following the opencv tutorial. Moreover when i used the same code in console application, everything works fine. Probably i missing something, but i don't know what?

edit retag flag offensive close merge delete

Comments

hello, did you get the way around to work with open cv in web app, i am also facing the issue.

jigar.shah gravatar imagejigar.shah ( 2017-05-10 02:05:35 -0600 )edit