A week or so, all my jogl apps were working just fine. Today however, all my apps give me this nice little message at startup:
java.lang.NullPointerException
at net.java.games.jogl.impl.windows.WindowsGLContextFactory.getDummyGL(WindowsGLContextFactory.java:117)
at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAn
dCreateContext(WindowsGLContext.java:279)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(Wind
owsOnscreenGLContext.java:211)
at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(Windows
GLContext.java:135)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent
(WindowsOnscreenGLContext.java:110)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:250)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
at net.java.games.jogl.Animator$1.run(Animator.java:107)
at java.lang.Thread.run(Thread.java:534)
I can’t recall having made any significant changes since then, but it’s possible that the jre has automatically updated to v. 1.5.something. However, uninstalling and going back to v. 1.4.2_03 did not help the situation. I’ve also tried earlier builds of the jogl binaries and jogl.jar without success. Installing Matlab v7 may also have made som changes to the jre, but I can’t see how that should affect jogl. The code that’s common to all my jogl apps is:
public static void main(String[] args)
{
GLCanvas drawable = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
drawable.addGLEventListener(new MyClass());
JFrame frame = new JFrame("Headline");
frame.getContentPane().add(drawable);
frame.setSize(640, 480);
frame.setLocationRelativeTo(null);
final Animator animator = new Animator(drawable);
frame.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
animator.stop();
System.exit(0);
}
});
frame.setVisible(true);
animator.start();
}
I’m running Win XP SP2 on a dell inspiron 8100 with an NVIDIA GeForce 2 Go graphics controller.
Any help on this would be greatly appreciated!