problems with java3D lib configuration

后端 未结 12 769
再見小時候
再見小時候 2020-12-03 08:53

ive ran into some trouble configuring java3D to work with my IDE environment...

I have downloaded j3d-1_5_2-linux-i586.zip, and unpacked j3dcore.jar, j3dutils.jar, v

12条回答
  •  执念已碎
    2020-12-03 09:14

    Java is complaining because it cannot find the native libraries (the *.so files) on your system path that Java3D comes with. Exactly how you fix this is up to you. You can do anyone one of the following:

    1) Make sure that your system path includes the *.so files provided with Java3D

    2) Setup your LD_LIBRARY_PATH environment variable: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/"path-to-java3d-libraries"/

    3) Set the java.library.path when executing java: java -Djava.library.path=$LD_LIBRARY_PATH:/usr/lib/"path-to-java3d-libraries"/

    To be sure you have things set correctly, add the following to your Java code and make sure the path reported contains the shared libraries on it

    System.out.println("LD Library Path:" + System.getProperty("java.library.path"));
    

提交回复
热议问题