Work with your entire team. We will use VNC so that you can all see what everyone is doing.

  1. Locate the Track+ entry about installing VNC and install it (if you haven't already done so)
  2. One of you runs the VNC server and tells everyone else their VNC password (leave blank or set as "secret") and IP address (run ifconfig on Linux/Mac or ipconfig on Windows)
  3. Everyone else runs the VNC client with the given IP address/password. If the client doesn't come up, then check the firewall settings on both the server and the client. Get me, or even better, Menko, if this doesn't work. (Full disclosure: I never tried VNC with more than one client. If it is not possible to have multiple clients, then you can only share the screen once. But that's still better than five people huddling around one laptop.)
  4. One of you--not the one running the server--starts a Track+ issue with title Lab 10 / teamname.

The person running the VNC server executes the following commands. Everyone else helps out when you get stuck, and everyone ponders what the significance of all this is. (Hint: It helps you with a vexing part of the semester project.)

  1. Download and unzip labrat-src.zip into ~/labrat-src
  2. Download and unzip ch6-exercises.zip into ~/ch6-exercises
  3. Change to the labrat directory and build it. What command did you use to build it?
  4. Run
    java -classpath labrat.jar lib/* com.horstmann.labrat.AntRunner grade ~/ch6-exercises/ExP6_2/submission ~/ch6-exercises/ExP6_2/grader
    (If you aren't running Java 6, you need to replace lib/* with lib/xxx.jar for each of the four JAR files in the lib directory). What happened?
  5. Look into report.html in the ~/ch6-exercises/ExP6_2/submission directory. What is its significance?
  6. You never want to type that wretched command line again. Make yourself a shell script labrat that contains the Java command. You do want variable directories though, since you will need other submission and grader directories for other students/exercises. What is in your shell script? (Hint: $@ is the tail of the command line).
  7. Make your script executable (chmod 755 labrat). Exactly what command do you execute to launch your script with the given samples?
  8. Have a look at the check.properties file in the grader directory. What is its significance?
  9. In your favorite IDE (doesn't have to be NetBeans), make a project containing the labrat source. Follow the main method of the AntRunner class. At a high level, what does it do?
  10. Where is the script that the AntRunner executes?
  11. Why can't you just run Ant? (Hint: Look at the Report class.)