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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…