0
\$\begingroup\$

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
\$\endgroup\$
  • \$\begingroup\$ 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. \$\endgroup\$ – Josh Jan 4 '13 at 17:21
  • \$\begingroup\$ @JoshPetrie It says "The import com.sun.opengl cannot be resolved" \$\endgroup\$ – ChocoMan Jan 4 '13 at 17:29
  • \$\begingroup\$ I had good luck using: www3.ntu.edu.sg/home/ehchua/programming/opengl/JOGL2.0.html \$\endgroup\$ – Ray Tayek Mar 13 '13 at 20:25
3
\$\begingroup\$

SUN/Oracle are not maintaining JOGL 1 since 2009. http://labb.zafena.se/?p=656 - 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. http://jogamp.org/jogl/doc/Overview-OpenGL-Evolution-And-JOGL.html

\$\endgroup\$
1
\$\begingroup\$

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

http://www.java2s.com/Code/Jar/j/Downloadjogl20jar.htm

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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