CS465 Program 3: Pipeline


FAQ


Setup Information

This project will involve a little setup on your part, since it invovles OpenGL. Before anything else, it helps if you know which version of the JRE your machine is using and where it is installed. On windows, all JREs are installed to C:\Program Files\Java\. On linux, the JDK and JRE are installed to the same location: /usr/java/. If you are using ecipse, it is simple to figure out which JRE you are using and place the JAR files only where you need them. Go to "Window->Preferences->Installed JREs" and determine the location of the default JRE for eclipse. Note that JDKs come with a version of the JRE as well. It usually resides in a subdirectory of the JDK called, amazingly enough, jre.

The way the JRE works is it assumes all JAR files in its \lib\ext directory are to be added to the classpath. So if you can copy the JAR files there, then great. Otherwise, you have to manually change your classpath or add the JAR files into your project externally. The native code (DLLs on Windows, SO files on Linux, etc) is placed in different locations depending on the system. The locations that are valid depend on a Java property called "java.library.path", which can be determined for any system by printing out the result of System.getProperty("java.library.path").

Windows Linux
Full Access
  • Make sure you have the latest drivers for your video card.
  • Download the windows libraries
  • Place the JAR files in the \lib\ext subdirectory of your default JRE. If you aren't sure which JRE you are using, copy the JAR files to C:\Program Files\Java\*\lib\ext, where * stands for any directory.
  • Place the DLL files in the \bin subdirectory of your default JRE. If you aren't sure which JRE you are using, copy the DLL files to C:\Program Files\Java\*\bin, where * again stands for any directory.
  • Make sure you have the latest drivers for your video card.
  • Download the linux libraries
  • Place the JAR files in $JAVA_HOME/jre/lib/ext.
  • Place the SO files in $JAVA_HOME/jre/lib/i386.
Limited Access
  • Make sure you have the latest drivers for your video card.
  • Download the windows libraries
  • Set your classpath to include the JAR files. You can set environment variables in Windows by going to "Start Menu->Control Panel->System->Advanced->Environment Variables". There should be a section for the user defined variables, and you should add a CLASSPATH variable whose value is ".;<project-path>\vecmath.jar;<project-path>\jogl.jar". To test if this worked, open a command prompt and type "echo %CLASSPATH%" and ensure the printed value is what it should be.
  • As an alternative to setting your classpath, you can link the JAR file into eclipse by right clicking on "Project->Properties->Java Build Path->Libraries" and clicking on the button labelled "Add External JARs". Browse to the JAR files and add them.
  • At the beginning of the main function in MainFrame.java, add the following line at the beginning: System.setProperty("java.library.path", System.getProperty("java.library.path") + ";<project-path>")
  • Make sure you have the latest drivers for your video card.
  • Download the windows libraries.
  • Set your classpath to include the JAR files. If you are using bash, or bash-like shells, do this with the "export" command: export CLASSPATH=$CLASSPATH:<project-path>/vecmath.jar: <project-path>/jogl.jar. Use the command echo $CLASSPATH to make sure it worked.
  • As an alternative to setting your classpath, you can link the JAR file into eclipse by right clicking on "Project->Properties->Java Build Path->Libraries" and clicking on the button labelled "Add External JARs". Browse to the JAR files and add them.
  • At the beginning of the main function in MainFrame.java, add the following line at the beginning: System.setProperty("java.library.path", System.getProperty("java.library.path") + ":<project-path>")


Cornell CS465 Fall 2004 (cs465-staff-l@cs.cornell.edu)