When I try to add a GLJPanel in Netbeans 6.0 Beta 1 w/ JOGL something strange happens with the window rendering: I cannot see an object to place (no black GLJpanel or GLCanvas square like the screenshots show), and if I add it in and switch from designer view to source view and back again, the window will not redraw and things will look all messed up until I remove the object.
I also can view the following exception (trimmed):
1 2 3 4 5 6 7 8 9 10 11 12
| java.lang.NoClassDefFoundError: Could not initialize class com.sun.opengl.impl.windows.WindowsGLDrawableFactory at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106) ...
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:679) at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:659) [catch at] ... at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) |
I can compile and run the demos, however. I've installed it on two computers and followed the directions, and still have this problem.
Help!
Thanks.
Edit: Another error (perhaps more telling):
1 2 3 4
| javax.media.opengl.GLException: Unable to create OpenGL context for device context 0x490109d2 at com.sun.opengl.impl.windows.WindowsGLContext.create(WindowsGLContext.java:122) at com.sun.opengl.impl.windows.WindowsGLContext.makeCurrentImpl(WindowsGLContext.java:150) ... |
And the Tools/OpenGL Capabilities dialog has no information in it.
Further Edit: Since the problem seemed to be the JVM Netbeans is using couldn't find the methods supplied in the JAR or perhaps DLL files, I stuck them all over the place in my JDK folders and now things seem to work. Odd, that.