Project 1


Project Description
Framework Code

Grade statistics
GL4Java (can also be obtained at www.jausoft.com )
Place this file on your CLASSPATH
gl4java.jar
GL4Java Native code (must be placed on your PATH)
Windows DLL
Linux SO

Directions

Extract the code from the project file (cs418p1.jar) with
 jar xvf cs418p1.jar 

Then set up your CLASSPATH to include the directory where you extracted the code. Also add gl4java.jar to your CLASSPATH. Finally, add the DLL or SO to your PATH.
For example, if you extracted the jar file in the directory
Z:/code 
the directory structure will now look like
Z:/code/cs417/assignments/PaintFmwk.java 
You would compile this on the command line like so:
javac Z:/code/cs417/assignments/PaintFmwk.java

If you then put Z:/code and gl4java.jar in your CLASSPATH, you can run the code with
java cs417.assignments.PaintFmwrk 

Submission Instructions

  1. First, you will create a single file to submit. We will call this "submission.jar". This jar file will contain both the .java and .class files from your project. This will allow us to easily run your project and look at the source files. Let's assume that the PaintFmwk.java file (and your other source file(s)) is in
    Z:\foo\src\cs418\paint\PaintFmwk.java
    . You would first copy all the class files into
    Z:\foo\src\cs418\paint\
    (JBuilder would probably have placed the class files under
    Z:\foo\classes\...
    ). Then change directories to
    Z:\foo\src
    . From here, execute the command
    jar cvf submission.jar cs418
    (you will need to have jar.exe in your PATH). This creates a single jar file (which is really a zip file) with your classes and source code. You can test to make sure the class files were included correctly by running the command
    java -cp submission.jar;gl4java.jar cs418.paint.YourMainClass
    which should start up your program.
  2. Second, submit the file. On the course web site, log in using the password you entered when you signed up for the course. Then, click on Submit on the bottom left hand side of the web page. If you are logged in, you will be able to submit your "submission.jar" file. Your submission will be time stamped. If you make a mistake and submit the wrong file, you can resubmit again and receive a later timestamp. This timestamp will be used to determine if your submission is late. If you have any problems submitting your submission.jar file, email it to spf@graphics.cornell.edu before the beginning of class (and let me know what problem you had so I can fix it).
  3. Third, register your group for project 1. Even if you worked on this project by yourself, register a group with just yourself in it. Please do NOT register what your future group will be (i.e. whom you will be working with for project 2). You will have an opportunity to do so later, but for now, we need to know who worked together on project 1. Go to the Group link right underneath the CS 418 link. Assuming you are logged in, you will see a bunch of groups. Find an empty one and join it and have your group partner (if you have one) do so as well. If there are no empty groups, click on the link to create a new group.
  4. Fourth, sign up for a grading slot. This part is not ready yet, but later today (Monday) you will be able to sign up for a grading slot. This will be a time later in the week when you (and your partner) come in to the lab and discuss what you did in the project. Attendance of ALL group members is MANDATORY.