2018-04-06 08:35:58 -0600 | received badge | ● Student (source) |
2017-03-21 17:24:29 -0600 | received badge | ● Editor (source) |
2017-03-21 14:22:00 -0600 | asked a question | Executing Java(Eclipse) OpenCV code from JAR Hi All, I'm just getting started with Java(Eclipse) and OpenCV . The "Using OpenCV Java with Eclipse" tutorial was excellent, and I'm able to excute the code in Eclipse with "Debug" or "Run". However , eventually I will need to export the code as a JAR (its going to be a plugin for MicroManager and ImageJ). When I try to export the project as "Runnable JAR file" , when I try to run it with java -jar myjar.jar I get the following error When I was exporting , I set the Library handling to both "Extract required lib into generated JAR" and "Package required lib into generated JAR" , I get similar errors. The code I'm running is the one from the tutorial. And it runs fine when I use the Eclipse Debug or Run button. Any help would be appreciated. Thanks. EDIT1: Incase its helpful. I'm on windows 7 pc EDIT2: Found this thread(error-when-lunching-the-runnable-jar-file) , and coping the opencv_java2411.dll seems to fix the issue. Not totally satisfied with that fix. How can I get my code to pickup the dll for a specified location. |