I'm trying to use IntelliJ IDEA 12 to develop OpenCV 2.4.5 applications in Java. I've followed the instructions for Eclipse from the website here.
The problem I am running into is that I can add the jar to my library but I don't know how to add the natives to my classpath.
In order to use native libraries in Java you need to specify java.library.path system property, so that JVM knows where to look for them.
In IntelliJ this be can be done in Run/Debug Configuration -> Application -> VM options, enter:
-Djava.library.path=path/to/dll
欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://ogeek.cn/) | Powered by Discuz! X3.4 |