Working with Java and JOGL
- Compiler and IDE: downloads from:
http://developers.sun.com/downloads/. We use NetBeans (6.5) as our IDE.
Download and install accordingly.
- Java OGL (JOGL): OpenGL Pack, an extention to NetBeans
Download and unzip (remember the folder).
- Install JOGL Pack in NetBeans: Start NetBeans, under: Tools -> Plugins
- Downloaded tab: find/select all the unzipped JOGL pack
files.
- Available Plugins tab: check and install all the JOGL modules.
Verify JOGL pack is installed under the Installed tab.
- Create JOGL Library: in NetBeans, under: Tools -> Libraries,
with Class Libraries selected, click "New Library":
- Library Name: JOGL
- Library Type: Class Library
- Click OK
We need to configure the newly created JOGL library. On
the left of the Library Manager window under Class Library, you should be
able to find JOGL (you just created), to configure this library, we will
need to find the corresponding plug-in files. By default, these files are
located under:
C:\Documents and Settings\ksung\.netbeans\6.5\jogl-runtime
(or your machine equivalent):
- Classpath tab: "Add JAR/Folder", go to the above folder
and select: jogl.tar
- Sources tab:"Add JAR/Folder", jogl-src.zip
- Javadoc tab:"Add ZIP/Folder", jogl-docs.zip
We need to create one more library ...
- Create GLUGEN-RT Library: in NetBeans, under: Tools -> Libraries,
with Class Libraries selected, click "New Library":
- Library Name: GLUGEN-RT
- Library Type: Class Library
- Click OK
We need to configure the newly created GLUGEN-RT library. As previously, on
the left of the Library Manager window under Class Library, you should be
able to find GLUGEN-RT(you just created), to configure this library, we will
need to find the corresponding plug-in files. By default, these files are
located under:
C:\Documents and Settings\ksung\.netbeans\6.5\gluegen-runtime
(or your machine equivalent):
- Classpath tab: "Add JAR/Folder", go to the above folder
and select: gluegen-rt.tar
- Sources tab: do nothing
- Javadoc tab: do nothing
- Run-Time DLL: To support run-time DLL loading, copy the following
files in the unzip JOGL pack folder to C:\WINDOWS\system32
- jogl.dll, jogl_awt.dll, jogl_cg.dll, gluegen-rt.dll.
We are ready to compile and run JOGL projects!