Hello,
I’ve been developing a little OpenGL application (University homework) under Windows XP and all fine.
Last monday i’ve purchased a MacBook and i’ve instaled Eclipse (the same SDK i’ve been using under Windows) , i’ve followed this tutorial (http://splainhow.com/jogl_eclipse.html) for installing jogl.jar and i still get this error msg:
Exception in thread “AWT-EventQueue-0” java.lang.UnsatisfiedLinkError: createContext1
at com.sun.opengl.impl.macosx.CGL.createContext1(Native Method)
at com.sun.opengl.impl.macosx.CGL.createContext(CGL.java:44)
at com.sun.opengl.impl.macosx.MacOSXGLContext.create(MacOSXGLContext.java:111)
at com.sun.opengl.impl.macosx.MacOSXGLContext.create(MacOSXGLContext.java:93)
at com.sun.opengl.impl.macosx.MacOSXGLContext.makeCurrentImpl(MacOSXGLContext.java:147)
at com.sun.opengl.impl.macosx.MacOSXOnscreenGLContext.makeCurrentImpl(MacOSXOnscreenGLContext.java:65)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:74)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:117)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:236)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:127)
at lab2.Intento2$1.actionPerformed(Intento2.java:55)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread “AWT-EventQueue-0” javax.media.opengl.GLException: Attempt to make the same context current twice on thread Thread[AWT-EventQueue-0,6,main]
at com.sun.opengl.impl.GLContextLock.lock(GLContextLock.java:79)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:71)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:117)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:236)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:127)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:139)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:268)
at java.awt.Component.dispatchEventImpl(Component.java:4144)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Please i really need help i don’t want to come back into Windows’ Hell
P.D: I attach the related prject, executable files are “Intento2.java” and “Intento1.java” ----> http://www.djmasakre.com/lab2.zip