Can't Initialize!
Posted by Chris on Dec 18, 2010; 9:13pm
URL: https://forum.jogamp.org/Can-t-Initialize-tp2112742.html
Hi,
I've set up a JOGL test app based on the tutorial, eg.
public class Test {
public static void main(String[] args)
{
GLProfile.initSingleton(true);
GLProfile glp = GLProfile.getDefault();
GLCapabilities caps = new GLCapabilities(glp);
GLCanvas canvas = new GLCanvas(caps);
...
However, when I execute this I just get the exception below. Does anyone have any idea what I'm doing wrong?
Thanks,
Chris
Exception in thread "main" java.lang.NullPointerException
at javax.media.opengl.GLContext.getAvailableGLVersionsSet(GLContext.java:588)
at javax.media.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1218)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1192)
at javax.media.opengl.GLProfile.access$000(GLProfile.java:66)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:109)
at javax.media.opengl.GLProfile.validateInitialization(GLProfile.java:1338)
at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1489)
at javax.media.opengl.GLProfile.get(GLProfile.java:548)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:446)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:452)
at sim.Test.main(Test.java:15)
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:171)
at java.lang.Thread.run(Unknown Source)