Login  Register

Re: Jogl problem on OSX 10.9

Posted by gouessej on Oct 28, 2013; 9:05am
URL: https://forum.jogamp.org/Jogl-problem-on-OSX-10-9-tp4030396p4030398.html

Hi

tac wrote
I updated OSX10.8 to 10.9.
The compilation of my java3D app was fine.
But, I got a problem when I run it( On OSX10.8 and 10.7,  it was no problem.).  

usingJava3D1.5.2:
Exception in thread "J3D-Renderer-1" java.lang.NoClassDefFoundError: apple/awt/ComponentModel
        at com.sun.opengl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native Method)
        at com.sun.opengl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:56)
        at com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable$1.run(MacOSXOnscreenGLDrawable.java:165)
        ......
Java3D 1.5.2 has been abandoned by Oracle/Sun and is not maintained by the JogAmp community. Use it at your own risk.

tac wrote
using 3D [dev] 1.6.0-pre8-daily-experimental daily:
Exception in thread "main" java.lang.NoClassDefFoundError: com/jogamp/opengl/FBObject
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:190)
        at javax.media.j3d.Pipeline$PipelineCreator.run(Pipeline.java:73)
        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:90)
        at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:832)
        at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:274)
        at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:3803)


Java and OS Version:
java.runtime.version=1.7.0_45-b18
os.version=10.9
3D [dev] 1.6.0-pre8-daily-experimental daily( or java3D1.5.2)



Thanks in advance.
tac
JOGL and GlueGen JARs must be in the classpath, you must use the same version of JOGL 2 than the one used to build Java3D 1.6 pre8, you must use the same version of JOGL 2 to compile your application and to run it. You must ensure that there is no conflict with another version of JOGL and/or Java3D, I highly discourage you to install Java3D as an extension (which was something often happening under OS X several years ago). The JogAmp community only maintains Java3D 1.6. Don't install Java3D 1.5.2 and Java3D 1.6 to avoid conflicts. Both uses different incompatible versions of JOGL (Java3D 1.5.2 uses JOGL 1.1 whereas Java3D 1.6 pre8 uses at least JOGL 2.1). Moreover, Java3D 1.5.2 is so old that it has absolutely no chance to support recent Macs (including Mac OS X 10.9), it relies on some classes only available in Apple JRE, not in Oracle Java 1.7 update 45. Good luck. Maybe my tutorial can help you.
Julien Gouesse | Personal blog | Website