diff --git a/modules/java/test/src/org/opencv/test/OpenCVTestCase.java b/modules/java/test/src/org/opencv/test/OpenCVTestCase.java index ac1bf863ce..a9b5041189 100644 --- a/modules/java/test/src/org/opencv/test/OpenCVTestCase.java +++ b/modules/java/test/src/org/opencv/test/OpenCVTestCase.java @@ -97,7 +97,7 @@ public class OpenCVTestCase extends TestCase { super.setUp(); try { - System.loadLibrary("opencv_java"); + System.loadLibrary(Core.NATIVE_LIBRARY_NAME); } catch (SecurityException e) { System.out.println(e.toString()); System.exit(-1);