在运行Java3D程序时出现以下错误:
严重: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dcore-d3d in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at javax.media.j3d.NativePipeline$1.run(NativePipeline.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:180)
at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:137)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:948)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:280)
at javax.media.j3d.NodeRetained.dirtyBoundsCache(NodeRetained.java:959)
at javax.media.j3d.TransformGroupRetained.setTransform(TransformGroupRetained.java:150)
at javax.media.j3d.TransformGroup.setTransform(TransformGroup.java:121)
at com.test.Test.createSceneGraph(Test.java:66)
at com.test.Test.build(Test.java:40)
at com.test.Test.main(Test.java:34)
把j3d中的4个dll文件都放到jdk中的bin目录下面
在客户端需要把java3d 的lib库中的ert文件和bin目录下的四个dll文件分别考到当前运行的jre目录下对应的文件夹中。