Setting up JOGL Programming Enviornment
(on Windows and Mac OS)
You
may check out my earlier versions on different platforms in detail. Here is
a simplified process.
Download
a Java IDE (Eclipse)
You can download from http://eclipse.org the
latest version of Eclipse that matches the platform you use. Expand it into
the folder where you would like Eclipse to run from, (e.g., "C:\eclipse\").
There is no installation to run. To remove Eclipse you simply delete the directory,
because Eclipse does not alter the system registry.
Download
JOGL
- Mac OS: Place the "*.jar" and the "*.jnilib"
files in your java system libarary directory (/System/Library/Java/Extensions/):
o jogl.jar
o gluegen-rt.jar
o libjogl.jnilib
o libjogl_awt.jnilib
o libjogl_cg.jnilib
- Windows: Place the "*.jar" and the "*.dll"
files in your example libarary directory:
o jogl.jar
o jluegen-rt.jar
o jogl.dll
o jogl_awt.dll
o jogl_cg.dll
o cgGL.dll
o gluegen-rt.dll
- You
can download from the web the required libraries. Make sure it matches your
system, or you have to try again with a different package. You may use the
library I have in the example package as well.
Run Sample Programs
in Eclipse
-
http://www.cs.gmu.edu/~jchen/graphics/jogl/notes/joglExamples2011.zip;
extract to wherever you prefer.
- "File->Import->General-Existing Projects into Workspace",
browse to the downloaded directory.
- On
Windows using Eclipse, you should add "jogl.jar" and "gluegen-rt.jar"
under "Project->Properties->Libraries". If you see duplicates
of these jar files exist, please remove them first.