Error: net.java.games.jogl.GLException

I got this exception when i tried to run the sample code given in Chris Adamson’s tutorial - Jumping into JOGL(JOGL2DBasics.java)

Output**
constructor
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: 0

Output**

The code is compiling properly but gives the above runtime exception.

Why is it throwing this exception?

My settings:
<java_home>\jre\lib\ext\jogl.jar
<java_home>\jre\lib\ext\jogl.dll
<java_home>\jre\lib\ext\jogl_cg.dll

Drunken Wizard

Are you using the latest version of JOGL? The current version is 1.1 b10 and is available from the Documents & files link on the JOGL home page.