Login  Register

ClassNotFoundException.

Posted by Billy on Jun 07, 2012; 5:37am
URL: https://forum.jogamp.org/ClassNotFoundException-tp4025167.html

I had a working Java3d project.  Recently I came across the internet article that said that Java3d 1.6.0 was not available.  I downloaded that, removed the existing CLASSPATH, created new CLASSPATH with the new jar files, and also removed the path to the native libraries (the ones that came with 1.5.2).  However, when I run the application, I get this ClassNotFoundException.  As below.

run:
3D [dev] 1.6.0-pre1-daily-experimental daily

Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/opengl/GLException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at javax.media.j3d.Pipeline$PipelineCreator.run(Pipeline.java:76)
        at javax.media.j3d.Pipeline$PipelineCreator.run(Pipeline.java:64)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:93)
        at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:929)
        at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:294)
        at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:3868)
        at j3dapp.J3DApp.<init>(J3DApp.java:41)
        at j3dapp.J3DApp.main(J3DApp.java:35)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLException
        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:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 11 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

I don't know what I am doing wrong.  Please could someone help.  Thanks a lot in advance.