Good day everyone, please I'm new to opencv and I'm using it in java swing to develop a camera app.
Everything works fine in netbeans but when I export the jar file and doublclick it, nothing happens.
I've set my VM options using -DJavalibrary.path
. I've also loaded opencv in my main methods using System.load(path+Core.NATIVE_LIBRARY_NAME+ ".dll")
.
I browsed about the problem and some suggested I copy the opencv.dll file into jre bin folder, I did that and nothing happened also.
The funny thing is that when I run my app through cmd using java -jar "path"
everything works fine but double clicking the jar file does nothing.
Please help