Standalone Deployment

For the standalone example there are the following additional sources:

We have used the following directory layout for the new Java sources (Pane.java and Standalone.java). We also reuse some artefacts from the previous terminal example, but we do not show them here:

example01
example02
+--- Pane.java
+--- Standalone.java

The application can be compiled with the following command line on the windows platform. The compilation is very similar to the compilation of the previous example. We only designate another class as our entry point:

javac -sourcepath . \
-cp WEB-INF\lib\interpreter.jar \
-d WEB-INF\classes \
example02\Standalone.java

We have used the following directory layout for the byte code (Pane.class and Standalone.class). We also reuse the compile results from the previous example, but we do not show them here:

WEB-INF
+--- classes +--- example01
+--- example02
+--- Pane.class +--- Standalone.class

The terminal application can then be executed by the following command line on the windows platform. Again invoking the compile is very similar to the previous example. Once more we only designate another class as our entry point:

java -cp WEB-INF\classes;WEB-INF\lib\interpreter.jar \
example02.Standalone

Kommentare