JOGL Linux Run-time Errors

Ok, I am trying to get the Gears.java demo working. I was able to compile it fine – (I modified Gears.java by removing the package name); however, when I try to run it with the following command line I get the following error.

Note, I shouldn’t have to put the jar file and the .so file in the jre’s directories – it should work with the command line.

Any suggestions?

=====================

java -cp .:/usr/java/java_gaming/jogl/jogl.jar:/usr/java/java_gaming/jutils/jutils.jar -Djava.library.path=/usr/java/java_gaming/jogl Gears

Error Output

CANVAS GL IS: net.java.games.jogl.impl.x11.X11GLImpl
CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl
net.java.games.jogl.GLException: Error making context current
at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:153)
at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:199)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
at net.java.games.jogl.Animator$1.run(Animator.java:104)
at java.lang.Thread.run(Thread.java:534)
net.java.games.jogl.GLException: Error making context current
at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:153)
at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:199)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:89)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:405)
at java.awt.Component.dispatchEventImpl(Component.java:3678)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Hi,

Which graphic card/driver version do you use?

Few months ago somewhere on this forum was a working suggestion to change color depth (if I recall correct, from 16 bpp to 24 or 32 bpp).

Yuri

I am using a Geforce 4 Ti
and the latest driver from nvidias site
color depth is set at 24

I am just now getting the same error with any jogl application in Linux using latest ATI drivers 3.7.0.

Everything worked fine 'til I updated the ATI drivers a few days ago. Non-JOGL applications still work fine.

If I get some time, I’ll try to see if I can get any more info while debugging the JNI call. I’m also trying to find the previous ATI linux drivers to revert back if need be.

I reverted back to the XFree86 built-in radeon drivers along with the Mesa3D GL Libraries. Their driver seems to be just as fast as the ATI fglrx driver. Everything works fine. JOGL works great again, so I think there is something amiss in the latest ATI fglrx driver/opengl library.