Step0: Download and compile client and sample programs

Prepare for system requirements

  1. Install JDK (jdk1.5 or later)
  2. Set JAVA_HOME environment value   (e.g. set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_11)

Download client and sample programs

  1. Download AgClientJava.zip from [Download Java client and sample programs]. (no longer available)
  2. Unzip AgClientJava.zip.

Run sample programs for tutorial (Step[1-5].java)

  1. On Unix, give a premission for execution to ant command
     chmod +x ./apache-ant-1.7.0/bin/ant
  2. Run the following command to complie programs in the directory where you unzip the downloaded file
       .\apache-ant-1.7.0\bin\ant compile (Windows)
      ./apache-ant-1.7.0/bin/ant compile (Unix)
  3. Run each sample program
       .\apache-ant-1.7.0\bin\ant Step1.run (Windows)
       ./apache-ant-1.7.0/bin/ant Step1.run (Unix)
  4. Output image files (Step[1-5].png) are generated in the same directory.