how to set java library path for processing

后端 未结 4 1921
广开言路
广开言路 2020-12-03 01:35

I\'m using PDE to run a Processing sketch, and I get the following error:

Verify that the java.library.path property is correctly

4条回答
  •  半阙折子戏
    2020-12-03 02:00

    Before System.loadLibrary(""), use the following code to check you java.library.path

    System.out.println(System.getProperty("java.library.path"));

    Generally,the java.library.path=/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib

    Provides several options for:

    • $ sudo cp libxxx.so /usr/lib/jni
    • java -Djava.library.path=path of so xxx

提交回复
热议问题