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