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.
Best Answer-推荐答案 strong>
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
|