Loading JNI lib on Mac OS X?

后端 未结 3 649
独厮守ぢ
独厮守ぢ 2021-01-12 20:05

Background

So I am attempting to load a jnilib (specifically JOGL) into Java on Mac OS X at runtime. I have been following along the relevant Stack

3条回答
  •  粉色の甜心
    2021-01-12 20:44

    You don't have to provide the java.library.path at startup. You can programmatically set it with

    System.setProperty("java.library.path", "/var/folder/bla/foo/bar/");
    

    I don't know if System.load() will work somehow without this library path.

提交回复
热议问题