Thanks in advance.
I have a project that uses opencv-300.jar as an external library. I tried this in eclipse and in natBeans. In both cases, it works successfully when I start my project from the IDE itself. I want my project to export it as an executable (or executable) jar. I placed the opencv_java300.dll file in the source folder with the main java file and gave my name in
System.loadLibrary("opencv_java300");
I placed opencv-300.jar in external jar libraries and all other files that are needed in the main program. It works successfully when working with the IDE, but when I create an executable jar, it shows an error
Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java300 in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at CropFaceImage.main(CropFaceImage.java:27)
Please tell me which way to give java.library.path in the program itself. My project works without problems, even when I deleted the path for the opencv_java300.dll file in an external library.
source share