How to set the java.library.path from Eclipse

后端 未结 16 2795
陌清茗
陌清茗 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条回答
  •  闹比i
    闹比i (楼主)
    2020-11-22 06:19

    I'm using Mac OS X Yosemite and Netbeans 8.02, I got the same error and the simple solution I have found is like above, this is useful when you need to include native library in the project. So do the next for Netbeans:

    1.- Right click on the Project
    2.- Properties
    3.- Click on RUN
    4.- VM Options: java -Djava.library.path="your_path"
    5.- for example in my case: java -Djava.library.path=
    6.- Ok
    

    I hope it could be useful for someone. The link where I found the solution is here: java.library.path – What is it and how to use

提交回复
热议问题