| 1)
Within Eclipse, make a new Java project (JOGLDraw) with separate
folders for sources and class files. The quickest way would be to download and decompress the zip file. Then within Eclipse, use the File -> New -> Java Project option and select the "create project from existing sources" option as shown to the right. The source folder "src" should contain the package "example485" which contains the java source files. Click finish to create the project. [ If you are using Eclipse for the first time, dismiss the "Welcome Tab" by clicking on its close box. You can retrieve the "Welcome" again through the Help menu.] To make the small red "x" boxes (indicating problems) go away, Eclipse needs to know where you have placed the JOGL libraries. Right-click your project's "Referenced Libraries" and use the "Build Path" option to configure the build path. You want to "Add external jars" to add in the gluegen-rt.jar and jogl.jar files as shown below. These files from the JSR-231 1.1.1 (May 2008) release should already have been loaded on your machine. After setting up your project in Eclipse, the Package Explorer view should reveal a file structure as shown below. The build script depends upon files being correctly named and placed within the correct folders. ![]() |
![]() |
| What if you get a "can't find compiler error"? Under the Eclipse "Window" menu, select "Preferences ...", look at the Java section and bring up the "Installed JREs". Make sure you have selected a Java JDK (with the tools like the compiler) rather than just a JRE (run time environment for nondevelopers). Use the search button to find an appropriate jdk on your system. |