Java Hello Load XPL from URL

This example demonstrates the use of the LSAPI function LoadFromMemory and the Java-specific method LoadFromURL. Both allow an XPL file to be loaded from memory, which means the XPL file can be delivered in a JAR file, another binary archive or over the Internet.

Building the Sample

  1. Compile and link hello.pro into hello.xpl
  2. Compile HelloMain.java and HelloLoadURL.java
  3. Make a JAR file with HelloMain.class, HelloLoadURL.class, hello.xpl, amzi/ls/LogicServer.class, amzi/ls/LSException.class, meta-inf/Manifest.mf

Running the Sample

  1. Type: java -jar hello_loadurl.jar

Copyright ©1987-2004 Amzi! inc. All Rights Reserved. Amzi! is a registered trademark and Logic Server and e-Prolog are trademarks of Amzi! inc.