错误运行时无法在MacOSX 10.9.5上的netbeans中找到类java3D simpleUniverse lib

时间:2014-09-24 16:03:05

标签: java netbeans java-3d

java.lang.NoClassDefFoundError: Could not initialize class com.sun.j3d.utils.universe.SimpleUniverse
at com.jbatik.modules.corak.component.CorakViewElement.init(CorakViewElement.java:140)
at com.jbatik.modules.corak.component.CorakViewElement.<init>(CorakViewElement.java:109)
Caused: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.createElement(MultiViewFactory.java:447)

请帮助我,我非常混淆在MacOSX上安装java3d,在我使用Windows 8.1之前很好没问题。我在jre / lib / ext上复制了j3dutil,j3dcore,vecmath,jogl和gluegen-rt,没有任何反应。

1 个答案:

答案 0 :(得分:0)

你必须安装Java3D 1.6.0,我写了一篇非常详细的教程,请按照我的指示here

您不应该将任何库复制到jre / lib / ext中,以免破坏可能使用不同版本的Java3D或JOGL的applet和应用程序。