Help with tutorial: GLCapabilities(GLProfile) doesn't exist?

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

Help with tutorial: GLCapabilities(GLProfile) doesn't exist?

Robert B
Hi all,

I'm trying to work through the tutorial at https://sites.google.com/site/justinscsstuff/jogl-tutorial-2 and it specifies this:

        GLProfile.initSingleton();
        GLProfile glp = GLProfile.getDefault();
        GLCapabilities caps = new GLCapabilities(glp);

However, I'm getting an error saying that GLCapabilities(GLProfile) doesn't exist, while the docs here http://jogamp.org/deployment/jogl-next/javadoc_public/ says that such a constructor does exist.

I'm using the macosx build in jogl-b187-2010-09-30 from http://jogamp.org/deployment/autobuilds. Am I using the wrong build?

Any help is appreciated! Thanks,

--Rob
Reply | Threaded
Open this post in threaded view
|

Re: Help with tutorial: GLCapabilities(GLProfile) doesn't exist?

Wade Walker
Administrator
I've built Justin's tutorial with that exact JOGL build on both Windows 7 and Linux, and those classes (with that constructor) are definitely in there (the JARs are the same for all platforms).

What may be happening is you could have a different version of JOGL somewhere else on your classpath, or maybe you've imported the wrong one somehow, so you're not looking in the right JAR file. I'd say recheck your library to make sure it's the one you think it is
Reply | Threaded
Open this post in threaded view
|

Re: Help with tutorial: GLCapabilities(GLProfile) doesn't exist?

Robert B
Hi Wade,

I think you may be right. I've been scratching my head over this and also the other problem where building from git claims that there is an AbstractGraphicsDevice class in javax.media.opengl, which I know from the git source just isn't the case. I've probably played with JOGL a few years ago, so I'll have to track down where the heck the old jars ended up.

(update) Yes, that was it... I found old JOGL libraries in /Library/Java/extensions. Deleting those libraries cleared the problem up. Thanks Wade for confirming what was only a small suspicion in my mind :)

Thanks,

--Rob
Reply | Threaded
Open this post in threaded view
|

Re: Help with tutorial: GLCapabilities(GLProfile) doesn't exist?

Wade Walker
Administrator
Boo ya! Finally I help someone solve a problem on this forum