Building the Java API Examples

The Java examples are provided in the AS_HOME/examples/java directory. To facilitate building the Java examples, a build.xml file for use with Apache Ant is provided.

See http://ant.apache.org for more information on using Apache Ant for building Java applications.

Procedure

  1. Ensure that the /bin directory for ant is in your path.
  2. Change to the directory containing the ActiveSpaces Java examples.
    cd AS_HOME/examples/java
  3. Enter the following:
    ant

Result

The Java compiler compiles the examples and two jar files are created:

  • Examples.jar contains the class files for all of the examples except for ASPaint
  • ASPaint.jar contains the class files for only the ASPaint example.