Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been working with JOGL and I've ran into a problem. The problem is when I try to import import com.sun.opengl.*; on Eclipse, Eclipse doesn't recognize it. Does anyone know where this library is? Did I miss a step during installation? I'm working with the latest build.

Here are the included libraries:

  • gluegen-rt-natives-windows-i586.jar - JOGL/lib
  • gluegen-rt - JOGL/lib
  • gluegen.jar - JOGL/lib
  • jogl-all-natives-windows-i586.jar - JOGL/lib
  • jogl-all.jar - JOGL/lib

This is within my JOGL project folder:

  • gluegen-rt.dll
share|improve this question
This sounds suspiciously "too localized" to me, but you need to provide more details. At the very least, an actual error message because "Eclipse doesn't recognize it" could mean a variety of things. – Josh Petrie Jan 4 '13 at 17:21
@JoshPetrie It says "The import com.sun.opengl cannot be resolved" – ChocoMan Jan 4 '13 at 17:29
I had good luck using: – Ray Tayek Mar 13 '13 at 20:25

SUN/Oracle are not maintaining JOGL 1 since 2009. - The JogAmp community now maintains JOGL 2 and Java3D.

Casses found under com.sun.opengl.* are now found under com.jogamp.opengl.* in JogAmp JOGL 2.

If you want to use JOGL that support both mobile, tablets and desktops then its recommended to migrate your code to JOGL 2 that is well maintained and got better support for all new shader based GPU OpenGL profiles.

share|improve this answer
up vote 1 down vote accepted

Found what I was looking for. A separate jar file located here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.