Login  Register

Re: NoClassDefFoundError: GLCapabilitiesChooser on OS X Snow Leopard and Java 1.6

Posted by Sven Gothel on May 23, 2012; 12:40pm
URL: https://forum.jogamp.org/NoClassDefFoundError-GLCapabilitiesChooser-on-OS-X-Snow-Leopard-and-Java-1-6-tp4008344p4008551.html

On 05/23/2012 12:09 PM, ApoY2k [via jogamp] wrote:

> Hi there,
>
> I'm trying to get Java3D to run on my Mac OS X Snow Leopard and Java 1.6
>
> I have implemented the latest Java 3D and JOGL/Gluegen libaries exactly as
> specified in the respective wikis and tutorials. But, as soon as I run my
> project, I get an exception telling me that the
> javax/media/opengl/GLCapabilitiesChooser class could not be found.
>
> All jars are in the classpath:
>
> -classpath
> "/.../:/Users/.../lib/gdv-api-1.2.jar:/.../lib/j3dcore.jar:/.../lib/j3dutils.jar:/.../lib/vecmath.jar:/.../lib/gluegen-rt.jar:/.../lib/jogl-all-natives-macosx-universal.jar:/.../lib/gluegen-rt-natives-macosx-universal.jar:/.../lib/jogl.all.jar:/Applications/IntelliJ
> IDEA 11 CE.app/lib/idea_rt.jar"
>
> What's going wrong here?

don't really know ..

maybe your classpath somehow contains another jogl version,
somehow cached or within your env. variable CLASSPATH ?

I also don't know your '/.../' notation, I assume it's an abbreviation here ?

You also add something like '/.../' which may add all class files located at
'/.../' (which location is unknown to me - see above).
Maybe you have some JOGL classes laying around there ?

Last but not least, maybe the other JAR files 'illegally'
contain some JOGL classes ?

+++

Pls drop the '*natives*' JAR in the classpath as well,
they are being picked up automatically.

+++

~Sven