Login  Register

GLDrawableFactory initSingleton

Posted by Spacedone on Mar 31, 2012; 3:05pm
URL: https://forum.jogamp.org/GLDrawableFactory-initSingleton-tp3873582.html

Hey there!

I've got a problem setting up a simple jogl project.
I'm using the latest version of jogl from 2011-12-19..

I want to create a GLCanvas folowing this tutorial : http://www3.ntu.edu.sg/home/ehchua/programming/opengl/JOGL2.0.html

But i do always get a NoSuchMethodError saying that the method initSingleton from GLDrawableFactory does not exist.

"Exception in thread "main" java.lang.NoSuchMethodError: javax.media.opengl.GLDrawableFactory.initSingleton()"

GLProfile glp = GLProfile.getDefault(); // Here does the error occur
GLCapabilities caps = new GLCapabilities(glp);
GLCanvas canvas = new GLCanvas(caps);

Yours
Spacedone