How to set the java.library.path from Eclipse

后端 未结 16 2669
陌清茗
陌清茗 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:30

    Here is another fix:

    My build system (Gradle) added a required native library (dll) to the Eclipse build path (Right Click on Project -> Properties -> Java Build Path -> Libraries). Telling the build system not to add the native dll library to the Eclipse classpath solved the problem.

提交回复
热议问题