I’ve been developing JOGL apps on Windows and Fedora for ages and never run into this. Trying to run the JOGL demo “Gears” (or any that use a GLCanvas for that matter) I get
Exception in thread “main” java.lang.IllegalArgumentException: GLDrawableFactory.chooseGraphicsConfiguration() was not used when creating this Component
at com.sun.opengl.impl.x11.X11GLDrawableFactory.getGLDrawable(X11GLDrawableFactory.java:238)
at javax.media.opengl.GLCanvas.(GLCanvas.java:142)
at javax.media.opengl.GLCanvas.(GLCanvas.java:90)
at demos.gears.Gears.main(Gears.java:24)
This is straight out-of-the-box jogl-1.1.1-linux-i586 (JSR-231-1.1.1a (June 18) (15)) and corresponding jogl demo code. Running Ubuntu 9.04 and Eclipse 3.2.
I’ve found posts related to multi-head monitors and X11 (not case here). Also I saw the reference to X11 in the JavaDoc, but choosing GLGraphicsCapabilities etc. doesn’t help. Does someone please have an answer?
I’ve never seen this before when calling new GLCanvas() !