GLDrawableFactory initSingleton

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

GLDrawableFactory initSingleton

Spacedone
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
Reply | Threaded
Open this post in threaded view
|

Re: GLDrawableFactory initSingleton

Wade Walker
Administrator
Hi Spacedone,

That initSingleton() method was deprecated a while back, but is still there in current JOGL releases (you can see it at https://github.com/sgothel/jogl/blob/master/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java). The tutorial you were looking at is a bit old, as well -- you can find more recent stuff on our wiki at http://jogamp.org/wiki/index.php/Jogl_Tutorial.

You might try a more recent version of JOGL from the development builds -- see the instructions at http://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL for how to get one. You might just have your classpath accidentally set to a very old version of JOGL somewhere
Reply | Threaded
Open this post in threaded view
|

Re: GLDrawableFactory initSingleton

gouessej
Administrator
Wade, we should ask Chua Hock-Chuan to update his tutorial, shouldn't we?
Julien Gouesse | Personal blog | Website