GLCanvas cannot be resolved to a type

I am trying to compile an example JOGL code out of a book and I keep getting the message:

GLCanvas cannot be resolved to a type

everywhere I use the GLCanvas command or the glcanvas object that i declare using it. It starts at the beginning of the code where I declare:

GLCanvas glcanvas;

could someone give me a hint to what i should look at for the cause.
thanks
edward

Did you add the correct import for GLCanvas? And did you add the jogl.jar to your classpath?

could you tell me the correct import for GLCanvas and how to add it to the path. I will check what you tell me against what i did.
thanks
edward

Well, well

import javax.media.opengl.GLCanvas seems fine

And adding the jar is done with -classpath argument on the command line javac.

If your are using an IDE, it depends…