Terminal Deployment

For the terminal example there are the following sources:

We have used the following directory layout for the sources (Query.java and Terminal.java), the Prolog text (table.p) and the Jekejeke Prolog runtime library (interpreter.jar) during compila-tion. The Jekejeke Prolog runtime library can be downloaded from the Jekejeke web site (www.jekejeke.ch):

example01
+--- Query.java
+--- table.p
+--- Terminal.java
WEB-INF
+--- lib
+--- interpreter.jar

The application can be compiled with the following command line on the windows platform. On the Linux and Mac OS platform the backslash (\) directory separator needs to be replaced by the slash (/). The command needs to be put on one line and the single standing backslashes (\) need to be removed so that the command can be issued:

javac -sourcepath . \ 
-cp WEB-INF\lib\interpreter.jar \
-d WEB-INF\classes \
example01\Terminal.java

We have used the following directory layout for the byte code (Query.class and Termi-nal.class), the Prolog text (table.p) and the Jekejeke Prolog runtime library (interpreter.jar) dur-ing execution. The byte code is automatically placed in the specified location by the previous compilation command line. The Prolog text (table.p) possibly needs to be manually copied to the class path:

WEB-INF
+--- classes
| +--- example01
| +--- Query.class
| +--- table.p
| +--- Terminal.class
+--- lib
+--- interpreter.jar

The terminal application can then be executed by the following command line on the windows platform. On the Linux and Mac OS platform the semicolon (;) path separator needs to be re-placed by the colon (:):

java -cp WEB-INF\classes;WEB-INF\lib\interpreter.jar \
example01.Terminal

Comments