How to set the java.library.path from Eclipse

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

    None of the solutions above worked for me (Eclipse Juno with JDK 1.7_015). Java could only find the libraries when I moved them from project_folder/lib to project_folder.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-11-22 06:36

    You can simply add -Djava.library.path=yourPath to the eclipse.ini.

    0 讨论(0)
  • 2020-11-22 06:36

    Sometime we dont get Java Build Path by directly right click on project. then go to properties.... Right Click and go to properties

    Then Click on java build pathProperties Scrren

    Click on add external jar

    Click on tab add external jars and give path of your computer file where u have stored jars.

    0 讨论(0)
提交回复
热议问题