First you'll need something to help you with 3D rendering, for simply drawing a cube I'd suggest LWJGL, then I'd take a look at some tutorials for whatever tool you choose to use for your 3D rendering. (LWJGL Tutorials)

Some of the other 3D rendering tools can be found in JGO's Java Gaming Resources section under 3D Enginges and Libraries

EDIT:I forgot to mention that LWGL is simply a Java binding to OpenGL, it isn't a full game library. This means you'll have to write more boilerplate code than you would if you chose a 3D game library. LWJGL is still a good choice IMHO

Check the runtime environment you have selected in Eclipse. If you have something funky like j2me selected, you'll get this when you try to use jars with classes that are incompatible with your environment.

Sometimes it's just Eclipse being stupid (shocker, I know) and removing lwjgl.jar from your depencies and adding it back might fix it.

But ra4king is right anyway. You have to understand the basis of OpenGL even though you plan to use it with a Java binding (JOGL, LWJGL) and as far as I know, Nehe tutorials have been ported to both APIs.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org