How to configure .dll file in Java?

后端 未结 6 1752
佛祖请我去吃肉
佛祖请我去吃肉 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:40

    When you use System.loadLibrary() don't include the .dll at the end.

    Also, if you are not setting java.library.path to point to the folder containing the DLL then the DLL should be in the directory where you launch your Java application from.

提交回复
热议问题