JOGL 1.1.1 installation fails

I just upgraded my Windows 2000 system from JOGL V1.1.0 to V1.1.1. Using 1.1.0, things work fine; the Gears demo for example produces:

java demos.gears.Gears
INIT GL IS: com.sun.opengl.impl.GLImpl
Chosen GLCapabilities: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: tru
e, DepthBits: 24, StencilBits: 0, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 1
6, Blue Accum: 16, Alpha Accum: 16, Multisample: false ]
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce FX 5200/AGP/SSE2
GL_VERSION: 2.0.1

and runs very nicely. However, switching to V1.1.1 produces a blank frame and the following text in the command window:

java demos.gears.Gears
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.IllegalArgumentExceptio
n: argument type mismatch
        at com.sun.opengl.impl.JAWT_DrawingSurfaceInfo.newPlatformInfo(JAWT_DrawingSurfaceInfo.java:
86)
        at com.sun.opengl.impl.JAWT_DrawingSurfaceInfo.platformInfo(JAWT_DrawingSurfaceInfo.java:52)

        at com.sun.opengl.impl.windows.WindowsOnscreenGLDrawable.lockSurface(WindowsOnscreenGLDrawab
le.java:189)
        at com.sun.opengl.impl.windows.WindowsOnscreenGLContext.makeCurrentImpl(WindowsOnscreenGLCon
text.java:57)
        at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
        at javax.media.opengl.GLCanvas.paint(GLCanvas.java:277)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
        at sun.awt.RepaintArea.paint(RepaintArea.java:224)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:301)
        at java.awt.Component.dispatchEventImpl(Component.java:4486)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.opengl.impl.JAWT_DrawingSurfaceInfo.newPlatformInfo(JAWT_DrawingSurfaceInfo.java:
83)
        ... 20 more


This is a Windows 2000 system with Java 1.6:

java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)

I musta broke something, but I can’t figure it out. Anybody got any ideas?

Thanks.

EDIT: I also tried it with -Dsun.java2d.noddraw=true… no change :frowning:

this is almost certain the result of mixing different versions of jogl.jar and gluegen-rt.jar.

you said you upgraded your Windows system…, does this mean you copied the jogl natives into the system folder or something like that? (I hope not ;))

No, I didn’t copy things to the Windows directory ;). I just meant that I installed JOGL 1.1.1 on my machine, and I was trying to be complete by indicating it was a Windows platform, 2000 variety.

I’ve subsequently searched everywhere I can think of and haven’t found any reason it would be using mismatched versions of jogl.jar and gluegen-rt.jar, but that certainly does sound like something that would cause this. Maybe I messed up in adjusting my CLASSPATH or PATH somehow. Thanks for the pointer; I’ll keep looking.

Make a full harddisk search for anything containing jogl and gluegen. Remove any occurences of jars and dlls starting with jogl or gluegen and “reinstall” jogl from a fresh download. By the way, please describe the steps you take to “install” jogl. Normally you just extract it to a dedicated directory (e.g. “D:\javalibs\jogl”) and either adjust the CLASSPATH and PATH environment variables or just hand over the locations to the -cp and -Djava.library.path JVM commandline arguments when starting a jogl app.