简体   繁体   English

找不到Java3D类

[英]Java3D classes not found

I'm trying to run a Java application and I get the following error message. 我正在尝试运行Java应用程序,并收到以下错误消息。 The application itself loads correctly, it just appears to be certain parts of it that fail. 应用程序本身正确加载,它似乎只是某些部分失败。

Nov 13, 2012 2:43:53 PM org.jdesktop.application.Task failed
SEVERE: My.Application$9@7c4f8358 failed: java.lang.NoClassDefFoundError: javax/media/opengl/GLCapabilitiesChooser
java.lang.NoClassDefFoundError: javax/media/opengl/GLCapabilitiesChooser
at jpl.mipl.jade.jadis.agile2d.swing.JOGLPluggableRenderer.notifyBeforeSetRootPane(JOGLPluggableRenderer.java:105)
at jpl.mipl.jade.jadis.StereoJFrame.setRootPane(StereoJFrame.java:264)
at javax.swing.JFrame.frameInit(JFrame.java:236)
at javax.swing.JFrame.<init>(JFrame.java:159)
at jpl.mipl.jade.jadis.StereoJFrame.<init>(StereoJFrame.java:172)
at StereoWS.DSStereoFrame.<init>(DSStereoFrame.java:70)
at StereoWS.StereoWSView$9.doInBackground(StereoWSView.java:1067)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLCapabilitiesChooser
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 14 more

I'm running OS X 10.8 fully updated, I've installed JDK 7 and, in frustration, Apple's Java development tools. 我正在运行OS X 10.8完全更新,我安装了JDK 7,并且令人沮丧的是,Apple的Java开发工具。 The program relies on a number of external libraries, but these are supplied with the jar and I trust that the program does actually look for them in the distribution directory when it runs (the errors aren't due to those packages though, I believe). 该程序依赖于许多外部库,但这些是随jar一起提供的,我相信程序在运行时实际上会在分发目录中查找它们(错误不是由于那些软件包,我相信) 。 As far as I can tell everything that I need to run the application is either already installed or somewhere where the jar can find it 据我所知,运行应用程序所需的一切都已安装或jar可以找到它

I don't know if there's anything else I need to do to set up the environment that I haven't done yet, so if anyone can suggest something, I'm all ears! 我不知道是否还需要做任何其他事情来设置我尚未完成的环境,所以如果有人可以提出建议,我将不知所措! I will provide any extra information needed, but I don't know what would help - I'm not a Java guru by any means. 我将提供所需的任何额外信息,但我不知道会有什么帮助 - 我不是任何方式的Java大师。

I believe you are using Java3D jars from the old Oracle site in combination with the latest JogAmp JOGLv2, this will not work of two reasons A) the jogl.jar is now renamed jogl-all.jar B) internal namespace changes, all com.sun.* classes is now found under com.jogamp.* and this will confuse the old Java3D code that expects the com.sun.* namespace. 我相信你使用旧的Oracle站点中的Java3D jar和最新的JogAmp JOGLv2,这不会有两个原因:a)jogl.jar现在重命名为jogl-all.jar B)内部命名空间更改,所有com。现在可以在com.jogamp。*下找到sun。*类,这会使使用com.sun。*名称空间的旧Java3D代码感到困惑。

Both JOGL and Java3D is now maintained by members of the JogAmp community: Background of the move: http://labb.zafena.se/?p=656 The only supported way to use Java3D today is by using the community maintained Java3D in combination with the latest JogAmp JOGL v2. JOGL和Java3D现在都由JogAmp社区的成员维护:移动的背景: http ://labb.zafena.se/?p = 656今天使用Java3D的唯一受支持方式是使用社区维护的Java3D组合使用最新的JogAmp JOGL v2。

Tutorial on how to setup the latest community maintained Java3D in combination with JOGLv2. 关于如何结合JOGLv2设置最新社区维护Java3D的教程。 Julien Gouesse: Java 3D est de retour [Java 3D is back] http://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/ Julien Gouesse:Java 3D est de retour [Java 3D回归] http://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM