|
Step0: Download and compile client and sample programs
Prepare for system requirements
- Install JDK (jdk1.5 or later)
- Set JAVA_HOME environment value (e.g. set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_11)
Download client and sample programs
- Download AgClientJava.zip from
[Download Java client and sample programs]. (no longer available)
- Unzip AgClientJava.zip.
Run sample programs for tutorial (Step[1-5].java)
- On Unix, give a premission for execution to ant command
chmod +x ./apache-ant-1.7.0/bin/ant
- 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)
- Run each sample program
.\apache-ant-1.7.0\bin\ant Step1.run (Windows)
./apache-ant-1.7.0/bin/ant Step1.run (Unix)
- Output image files (Step[1-5].png) are generated in the same directory.
|