JOGL-Eclipse Installation Notes (XP Instructions)


Java JDK and JRE
We assume that you have decided in which partition the Java JDK and JRE are to go and that these have been installed in the root directory, java, according to the class instructions. For example you might have chosen, C:\java\jdk and C:\java\jre. These installs require roughly 120Mb additional disk space in the java directory.

JOGL
Download jogl-1.1.1a-windows-i586.zip. Open the .zip file and extract the folder it contains. Rename the folder jogl and move it into the Java folder created in the Java install, ie, to java\jogl.

In java\jogl\lib you will find four .dll files. Copy these into the Windows system directory, C:\WINDOWS\system32.

Setting Environment Variables For Command Line Execution
Setting up the Java environment requires creating an environment variable and adding two directories to the system CLASSPATH variable. In the Control Panel, click on System, Advanced, and select Environment Variables. Do the following for the System variables, assuming here that the Java directory is on the C partition:

  • Click New and create the System variable JOGL_HOME with value C:\java\jogl

  • Select the System variable CLASSPATH and click Edit. Append ;%JOGL_HOME%\lib\gluegen-rt.jar;%JOGL_HOME%\lib\jogl.jar to CLASSPATH

Don't forget the semicolons!

Eclipse
Download the 92Mb .zip file eclipse-java-galileo-win32.zip, which is the Eclipse IDE for Java. Open the downloaded .zip file and copy the enclosed Eclipse folder into the Java folder. Then place a shortcut to the downloaded executable in this folder, Eclipse.exe, on your desktop.

To create a new project in Eclipse, do the following:

  File
    New
      Java Project (enter project name)
        Finish

Next add the JOGL libraries to your project:

  Project
    Properties
      Java Build Path
        Libraries
          Add External JARS (look in C:\java\jogl\lib)
            Select gluegen-rt.jar and jogl.jar and then click Open and OK

To open an existing project when you can't find it, you need the Package Explorer:

  Window
    Show View
      Package Explorer