How to configure .dll file in Java?

后端 未结 6 1753
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-16 22:00

I am using Jacob jar file in my java application.

This Jacob jar file comes with a .dll file. I have added Jacob jar file to my classpath. But when I execute my appl

6条回答
  •  醉酒成梦
    2020-12-16 22:24

    Other options :

    • set the property java.library.path to the directory containing the dll. Example : java -Djava.library.path="path/to/directory/containing/the/dll" -jar appli.jar
    • in the code, load the dll explicitly, with System.load.

提交回复
热议问题