On the course page, select the Java SE 6 Update 18 which contains both the Java JDK and JRE and download the software. Also download the Java SE 6 Documentation. As noted, for uniformity we recommend that any previous SE or JREs be removed from your computer before configuration.Decide into which partition Java is to go. In that partition, create the folder, java, in the root directory. Then create the subdirectories java\jdk, java\jre, and java\javadb, for example, C:\java\jdk, C:\java\jre and C:\java\javadb. The java folder will require about 850 Mb, not counting the directory where the downloads are stored.
Run the downloaded program file jdk-6u18-windows-i586.exe to begin the Java installation. Select Development Tools and click the Change button to install in the jdk folder you specified. Next select JavaDB and click the Change button to install in the javadb folder you specified.
Next the jre will be installed. Click the Change button to install in the jre folder you specified. Then click Finish - registration is optional. Click out of the Add-ons window.
Extract the documentation from the file, jdk-6u18-docs.zip into the folder C:/java.docs.
Setting up the Java environment requires creating an environment variable and adding a directory to the system PATH 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 JAVA_HOME with value C:\java\jdk
- Select the System variable Path and click Edit. Append ;%JAVA_HOME%\bin to the Path
Don't forget the semicolon!
To check your installation for command prompts, bring up a command window. Enter javac -version, and the response should be javac 1.6.0_18. Then enter java -version, and the response should be java version "1.6.0_18".
On the course page, select the NetBeans IDE 6.8 link and download the Java SE. Then run the downloaded program file, netbeans-6.8-ml-javase-windows.exe to begin the NetBeans installation. Specify the installation folder, which in our example would be C:\java\netbeans. When the installation is finished, you will have an option to contribute to the NetBeans project or register the IDE. It is up to you to decide and has no effect on the course. Start NetBeans for the first time and uncheck the Show on the Startup box. Then open the Java Platform Manager (Tools->Java Platforms) and select the Javadoc tab. Click the Add ZIP/Folder button, select the JDK documentation folder, C:\java\docs, and click the Add ZIP/Folder button. Close the platform manager. On the course page, select the NetBeans OpenGL Plugins and download netbeans-opengl-pack_0.6_beta.zip which contains 20 .nbm files (plugins). Extract the archive in a separate folder. In Netbeans, open the Plugin Manager (Tools->Plugins) and select the Downloaded tab. Click the Add Plugins button, select all the plugins, click the Open button, and install the extracted plugins by clicking the Install button.Test the installation by creating a new project and selecting one of the JOGL demos from Samples (e,g. Gears Demo). Select File->New Project, choose Java->JOGL Application (Form Designer, GLJPanel). Select Samples->Java OpenL->JOGL Demos->Gears Demo, click the Next button, and then click Finish. Click the green arrow at the top to run the project.
On the course page, select the Java Binding for the OpenGL API Wiki and click on JOGL Archived Builds incl. archived signed webstart bundles. In the index, click on jsr-231-2.0-beta10. Then in the next index click on jogl-2.0-windows-i586.zip and save the download. Extract the download into your Java directory (in our example, C:\java), and rename the extracted directory, jogl, i.e., C:/java/jogl.
Start NetBeans. Select Tools/Libraries and click on New Library. Name the new library, JOGL. Click the Add Jar/Folder button to add four .jar files to the library.
- C:/java/jogl/lib/jogl.all.jar
- C:/java/jogl/lib/gluegen-rt.jar
- C:/java/jogl/lib/nativewindow.all.jar
- C:/java/jogl/lib/newt.all.jar
Again on the course page, select the Java Binding for the OpenGL API WiKi, click on JOGL Demos 2.x Webstart Codebase and in the index click on jogl-demos.zip and save the download. Extract the download into your java/jogl directory and rename the extracted directory, demos, i.e., C:/java/jogl/demos.
In NetBeans, select File->New Project->Java Application and click Next. Name the project and click Finish. In the project window, right click on the new project, then select Set Configuration->Customize->Run. In the VM Options box enter -Djava.library.path=C:\java\jogl\lib, and next to Configuration click New and enter JOGL. Finally, in the same Project Properties window select Libraries, click on Add Library, select JOGL, and click on Add Library.