Java Pets Callback Sample

This sample illustrates building extended predicates in Java. To run it:
  1. Make sure amzijni.dll (Windows) or libamzijni.so (Unix) is on your path (it is in amzi/bin).
  2. Compile and link pets.pro into pets.xpl
  3. Use javac to compile the main program, Pets.java and the extended predicate, AmziPreds.java
  4. java Pets to run the program--the prompts are issued by the extended predicate