Java 3D Exception Stack Traces

Keep in mind that Java 3D is meant to run with JDK1.2 (reference release), and that the path to the Java 3D shared libraries and your CLASSPATH must be set correctly. The problems outlined below are because the user has not configured their system correctly, and it is not a problem with Java 3D.

If you have run into a problem and have solved it, please send me an e-mail so I can include it here.


If you see the something similar to the following message:
Exception occurred during event dispatching:
javax.media.j3d.CapabilityNotSetException: Locale: no capability to
detach BranchGroup

You might have noticed that locale doesn't have setCapability method. The error is a bit misleading. The BranchGroup needs the BranchGroup.ALLOW_DETACH capability set. That should fix the problem.


If you see the something similar to the following message:
Exception in thread "main" java.lang.NoSuchMethodError: sun.awt.X11GraphicsConfig: method getVisual()I not found
        at javax.media.j3d.NativeConfigTemplate3D.getBestConfiguration(Compiled Code)
        at javax.media.j3d.GraphicsConfigTemplate3D.getBestConfiguration(Compiled Code)
        at java.awt.GraphicsDevice.getBestConfiguration(Compiled Code)
        at javax.media.j3d.Canvas3D.defaultGraphicsConfiguration(Compiled Code)
        at javax.media.j3d.Canvas3D.(Compiled Code)
        at boot.main(Compiled Code)
or
Exception in thread "main" java.lang.NoSuchMethodError:
 java.security.AccessController: method endPrivileged()V not found
         at com.sun.j3d.audio.HaeMixer.(HaeMixer.java:86)
         at com.sun.j3d.audio.HaeDevice.(HaeDevice.java:25)
         at
 com.sun.j3d.audioengines.javasound.JavaSoundMixer.initialize(JavaSoundMixer.
 java:125)
         at boot.enableSound(boot.java:204)
         at boot.main(Compiled Code)
You are not running the latest version of Java and/or Java 3D. Be sure you're running JDK 1.2 final (reference release for Solaris, production release for Windows) and Java 3D 1.1 final.

Return to the Java 3D FAQ

Last updated February 10, 1999