How to set the java.library.path from Eclipse

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

    For a given application launch, you can do it as jim says.

    If you want to set it for the entire workspace, you can also set it under

    Window->
      Preferences->
        Java->
          Installed JREs
    

    Each JRE has a "Default VM arguments" (which I believe are completely ignored if any VM args are set for a run configuration.)

    You could even set up different JRE/JDKs with different parameters and have some projects use one, other projects use another.

提交回复
热议问题