Trying to make java application (Executable Jar) that uses OpenCV portable. Getting unsatisfied link error

后端 未结 1 876
我在风中等你
我在风中等你 2021-01-26 03:12

I have made a application to grab video from a webcam and detect motion using OpenCV and JavaCV. I am trying to export as an executable jar using eclipse. The program runs fine

相关标签:
1条回答
  • 2021-01-26 03:44

    If opencv is not installed in the target machine, than you need to deliver the necessary opencv's dll file and set the corresponding library path, opencv is a precondition of javacv

    for example:

    jar yourapp.jar -Djava.library.path="/path/to/OpenCV/library"
    

    also check this answer

    0 讨论(0)
提交回复
热议问题