Problem finding right OpenGL library for NVIDIA

I’m running WindowsXP, NVidia FX5900 Ultra with version 45.23 drivers, and have two monitors hooked up to the card.

I was experiencing a variety of problems with JOGL and noticed that it was using the generic Microsoft OpenGL drivers!

GL_VENDOR: Microsoft Corporation
GL_RENDERER: GDI Generic
GL_VERSION: 1.1.0

I reinstalled everything (drivers, Java, JOGL, etc) without success.

I then tried running the plugin version of the demos, and they all worked fine. But when I downloaded the demos and ran them directly from my local disk, I got the same errors as before!

I finally went into the control panel under the NVidia OpenGL settings tab, and changed the “Multi-Display Hardware Acceleration” tab from “Multi-Device Compatability Mode” to “Single-Display Mode”. Now, JOGL finds the OpenGL 1.4 drivers but it only runs on the primary monitor.

GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce FX 5900 Ultra/AGP/SSE
GL_VERSION: 1.4.0

What I really don’t understand is why the plugin version works fine but running apps locally causes JOGL to attach to the generic software OpenGL driver??