How to set the java.library.path from Eclipse

后端 未结 16 2423
陌清茗
陌清茗 2020-11-22 05:36

How can I set the java.library.path for a whole Eclipse Project? I\'m using a Java library that relies on OS specific files and need to find a .dll/

16条回答
  •  广开言路
    2020-11-22 06:27

    Except the way described in the approved answer, there's another way if you have single native libs in your project.

    • in Project properties->Java Build Path->Tab "Source" there's a list of your source-folders
    • For each entry, there's "Native library locations", which also supports paths within the workspace.
    • This will make Eclipse add it to your java.library.path.

提交回复
热议问题