Java Interface (Full Version)

Setting Up Java

The Java interface is in the runtime/java subdirectory. Before you can run this program, you must set-up the Amzi! Logic Server.

You can do this by either:

Then you need to:

This will let you run the sample as provided. In order to write your own Java programs, you need to install the Amzi! Logic Server Java Classes. They are located in the 'amzi/ls' directory tree under runtime/java. You can simply add this to your CLASSPATH environment variable:

CLASSPATH=/knowledgewright4/runtime/java;/knowledgewright4/workshop/lib/dbswing.jar;/knowledgewright4/workshop/lib/dx.jar;...

Setting Your Path and Classpath Under Windows

To change your PATH environment variable you need to open the Control Panel and then open System. One on of the tabs you will find a button labelled 'Environment Variables'. Press it and modify your PATH according to the instructions above.

You can use the same method to change your CLASSPATH. Alternatively, some development environments (like Borland's JBuilder) let you specify a CLASSPATH in your Java Project. Finally, you can use the -cp flag on the Java Compiler, javac, to specify a CLASSPATH for each compilation.


Copyright ©1996-2002 Amzi! inc. All Rights Reserved. Amzi!, KnowledgeWright and WebLS are registered trademarks and Subscription Plus and Logic Server are trademarks of Amzi! inc.