CS465 Codewarrior Instructions

Please direct any questions about these instructions to Andrew (ajb64@cornell.edu).

After downloading the framework code jar file, use WinZip or some similar program to extract it to your working directory. Place the files vecmath.jar, gl4java.jar, and GL4JavaJauGljJNI14.dll alongside it. We recommend z:\work on the CSUG machines. The z drive is for your personal files and is accessible over the network from any CSUG machine.

Once you've extracted the jar file, start up Borland JBuilder 8. It should be on all the CSUG machines. You will create a new project to manage the code involved in this assignment:

Create a new empty project. Set the following:

Project name: brush
Location: YourWorkDirectory\brush (for example, z:\work\brush)

Select "brush settings" from the Codewarrior's edit menu, or press Alt-F7. This brings up the project settings. You must change quite a few of the default settings:

Under Target->Target Settings,

Target Name: cs465.brush.Brush
Linker: Java Linker
Output Directory: YourWorkDirectory (this might show up as "{Project}..")

Under Target->Access Paths,

Add YourWorkDirectory to the list of User Paths. Again, it might show up as "{Project}.."

Under Target->Runtime Settings,

Working Directory: YourWorkDirectory

Under Target->Source Trees,

Name: (doesn't matter what you call it. "Work" or "Framework" would be ok)
Click "Choose..." and set the directory to YourWorkDirectory, where you extracted the framework code.
Click Add.

Under Target->Java Target,

Target Type: Application
VM Arguments: -Djava.library.path=YourWorkDirectory
Main Class: cs465.brush.Brush
Virtual Machine: choose the most recent Sun VM.

Under Linker->Java Output

Output Type: Class Folder
Name: (make sure this is blank!)
Make sure "Delete class files from output directory before linking" is checked.

Exit the settings dialog. Click Project->Add Files... and add the following files to your project:

YourWorkDirectory\gl4java.jar
YourWorkDirectory\vecmath.jar
YourWorkDirectory\cs465\brush\Brush.java
YourWorkDirectory\cs465\brush\BrushFmwk.java

Now you should be able to compile and run the project. Remember, as you work on the project you should only be modifying Brush.java, unless you are implementing extra credit features.

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