Login  Register

Re: problem with GLProfile.initSingleton()

Posted by blainebell on Mar 23, 2011; 3:27pm
URL: https://forum.jogamp.org/problem-with-GLProfile-initSingleton-tp2673904p2720779.html

I have upgraded from 2.0 to 2.0rc2, and I get this same error (it worked on 2.0), regardless of whether I call initSingleton() explicitly, or I do:

GLCapabilities gl_capabilities = new GLCapabilities(GLProfile.getDefault());

I definitely have the same setup as I did in 2.0, (I copy the libraries into the exact locations), and obviously I have OpenGL installed (I saw a message asking that)

My exact stack trace is:


Exception in thread "main" java.lang.NullPointerException
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1584)
        at javax.media.opengl.GLProfile.isGL4bcAvailable(GLProfile.java:151)
        at javax.media.opengl.GLProfile.glAvailabilityToString(GLProfile.java:242)
        at javax.media.opengl.GLProfile.glAvailabilityToString(GLProfile.java:310)
        at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1283)
        at javax.media.opengl.GLProfile.access$000(GLProfile.java:71)
        at javax.media.opengl.GLProfile$1.run(GLProfile.java:117)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:115)
        at javax.media.opengl.GLProfile.validateInitialization(GLProfile.java:1428)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1580)
        at javax.media.opengl.GLProfile.get(GLProfile.java:623)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:480)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:486)
        at com.schrodinger.jymol.JyMolJoglWrapper.initialize_canvas(JyMolJoglWrapper.java:179)
        at com.schrodinger.jymol.JyMol.init(JyMol.java:241)
        at com.schrodinger.jymol.JyMol.<init>(JyMol.java:179)
        at demos.jymol.simple.Simple.<init>(Simple.java:51)
        at demos.jymol.simple.Simple.main(Simple.java:151)
Exception in thread "Thread-2" java.lang.NoClassDefFoundError: Could not initialize class javax.media.opengl.GLDrawableFactory
        at javax.media.opengl.GLDrawableFactory$2.run(GLDrawableFactory.java:172)
        at java.lang.Thread.run(Thread.java:680)

Was there any differences in this instantiation between 2.0 and 2.0rc2?

Thanks for your help in advance.  

Blaine