------------------------------------------------------- Installing JOGL and configuring for Windows and Eclipse ------------------------------------------------------- 1. Download JOGL from the JOGL site: http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/jogl-1.1.1-windows-i586.zip (This link is the "Current Release Build" link on the web site jogl.dev.java.net) Extract the ZIP file into a folder. COPYING FILES 2. Create a folder in a convenient place to contain the necessary JOGL .jar files 3. Copy the .jar files from the folder in step 1 to the folder created in step 2. 4. Copy these DLL files to the Java Runtime Environment bin folder (e.g.C:\Program Files\Java\jre1.6.0_06\bin): gluegen-rt.dll jogl.dll jogl_awt.dll jogl_cg.dll SETTING ENVIRONMENT VARIABLES 5. Open the Windows environment variable window: - Right-click My computer, choose Properties - In Vista, choose "Advanced System Settings"; In XP, choose the Advanced tab - Click the "Environment Variables" button - Under "System Variables" you will edit the following variables: 6. CLASSPATH Add to the end of CLASSPATH the path to the JOGL .jar files folder (created in step 2) - be sure the added path string is separated from the original string by a semicolon (;) 7. java.library.path Create this environment variable with the path to the JRE bin folder (see step 4) USING IN ECLIPSE 8. When you make a project in Eclipse, you will need to add the JOGL .jar files to the project. To do so: - right-click the project name and choose properties - Choose "Java Build Path" in the left pane - Choose the "Libraries" tab - Click "Add External JARs" - Browse to the folder from step 2. Add each of the JOGL .jar files to the project IMPORTING THE JOGL LIBRARIES IN JAVA 9. To use in your Java program, add these lines to the appropriate class files: import javax.media.opengl.*; import com.sun.opengl.util.*; import javax.media.opengl.glu.*; Specifically, you'll need these classes: javax.media.opengl.GL com.sun.opengl.util.GLUT com.sun.opengl.util.Animator\ among others.