Login  Register

Re: Java 3D in eclipse Mac OSX not functioning

Posted by sotillo19 on Mar 27, 2015; 11:19am
URL: https://forum.jogamp.org/Java-3D-in-eclipse-Mac-OSX-not-functioning-tp4033010p4034202.html

Hi gouessej, I am having a similar problem to this thread. I have spent several days following your instructions without success :(

I have a Java 3D application I wrote 2 years ago which I am trying to get to work on a Mac (Yosemite) with the JDK 8 from Oracle using Eclipse. The application still runs fine on my pc (Windows 8.1) with Eclipse too.

Following your instructions, I have downloaded the JARs for JOGL, JOAL and GlueGen from http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z and http://jogamp.org/deployment/java3d/1.6.0-pre11/jogamp-java3d.7z and extract them into a directory in my home and finally I have added all jars except "native" into CLASSPATH:

echo $CLASSPATH
.:/Users/sotillo/j3d/j3dcore.jar:/Users/sotillo/j3d/j3dutils.jar:/Users/sotillo/j3d/vecmath.jar:/Users/sotillo/j3d/gluegen-rt.jar:/Users/sotillo/j3d/joal.jar:/Users/sotillo/j3d/jocl.jar:/Users/sotillo/j3d/jogl-all.jar:/Users/sotillo/j3d/gluegen.jar:/Users/sotillo/j3d/jogl-all-noawt.jar

I have also added the jars into Java Build Path in Eclipse and no old jars of Java3d there are in /Library/Java/Extensions/. However, when I run my application, this is the exception:
3D [dev] 1.6.0-pre11-daily-experimental daily

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/media/opengl/GLException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at javax.media.j3d.Pipeline$PipelineCreator.run(Pipeline.java:74)
        at javax.media.j3d.Pipeline$PipelineCreator.run(Pipeline.java:61)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:91)
        at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:837)
        at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:274)
        ....

Any help gratefully received. I am only trying to get this to work on a mac, I am frustrated at having spent several days on this problem, and have tried to follow your instructions in your blog as well as possible.

Thanks in advance!