GLProfile throws NoSuchMethodError: GLContext.getAvailableGLVersionsSet
Posted by clevenger on Jan 21, 2011; 3:07am
URL: https://forum.jogamp.org/GLProfile-throws-NoSuchMethodError-GLContext-getAvailableGLVersionsSet-tp2299424.html
I have a very simple application which I'm trying to port from JOGL 1.1.1a to JOGL 2. It compiles correctly (in Eclipse 3.6.1 - Ganymede) but when it runs I get the following:
Exception in thread "main" java.lang.NoSuchMethodError: javax.media.opengl.GLContext.getAvailableGLVersionsSet(Ljavax/media/nativewindow/AbstractGraphicsDevice;)Z
at javax.media.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1203)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1172)
at javax.media.opengl.GLProfile.access$000(GLProfile.java:66)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:107)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:105)
at javax.media.opengl.GLProfile.validateInitialization(GLProfile.java:1304)
at javax.media.opengl.GLProfile.getDefaultDesktopDevice(GLProfile.java:1291)
at javax.media.opengl.awt.GLCanvas.<clinit>(GLCanvas.java:86)
at openGLIntro.drawRedSquare.SimplePolygon.<init>(SimplePolygon.java:21)
at openGLIntro.drawRedSquare.SimplePolygon.main(SimplePolygon.java:62)
This happens on the line where I construct a GLCanvas:
private GLCanvas myCanvas;
....
myCanvas = new GLCanvas();
I'm using JOGL version jogl-2.0-b4-20101125-windows-i586.
I've searched the form for relevant things but come up empty (although I'm new to the forum and may have missed something).
Can anyone provide any help?
Thanks.