Newbie Question re: jogl and Eclipse

Hi everyone,

I’m trying to get jogl to work with Eclipse and am running into some problems. I’ve downloaded the jogl windows .zip file from here

https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=5971&expandFolder=5971

and unzipped jogl.dll, jogl.jar, jogl_awt.dll, and jogl_cg.dll. I’ve placed them in a folder in my workspace (C:\workspace\Libraries) and started a new project with a test class found elsewhere online. I went to Build Path–> Add External Archives and added jogl.jar to my project. I also added the path to the .dll files to the imported jar’s “Native Library” path (also C:\workspace\Libraries).

The code I’m trying to run is:

package testPackage;

import net.java.games.jogl.*;

public class HelloWorld {
   public static void main (String args[]) {
      try {
         System.loadLibrary("jogl");
         System.out.println(
            "Hello World! (The native libraries are installed.)"
         );
        GLCapabilities caps = new GLCapabilities();
        System.out.println(
            "Hello JOGL! (The jar appears to be available.)"
         );
      } catch (Exception e) {
         System.out.println(e);
      }
   }
}   

The error I am seeing is that net.java.games.jogl.* cannot be resolved. I would guess that this means jogl.jar isn’t being recognized… so, what horribly obvious thing am I missing? :slight_smile:

Thanks!

i think that package name is outdated.

the current one is:

javax.media.opengl.*;

Thank you!