1 | ABCL Examples Building and Running Instructions |
---|
2 | =============================================== |
---|
3 | |
---|
4 | code by Ville Voutilainen |
---|
5 | (abcl_appengine code by Alex Muscar) |
---|
6 | instructions by Blake McBride |
---|
7 | updated by Mark Evenson |
---|
8 | |
---|
9 | In general, to compile a Java class file (like Main.java for example |
---|
10 | in the 'java_exception_in_lisp' subdirectory) use: |
---|
11 | |
---|
12 | cmd$ cd java_exception_in_lisp |
---|
13 | cmd$ javac -cp ../../../dist/abcl.jar Main.java |
---|
14 | |
---|
15 | where the "../../../dist/abcl.jar" represents the path to your |
---|
16 | abcl.jar file, which is built via the Ant based build. This path |
---|
17 | could be slightly different depending on how the system was |
---|
18 | constructed, and possibly due to operating system conventions for |
---|
19 | specifying relative paths. However you resolve this locally, we'll |
---|
20 | refer to this as '$ABCL_ROOT/dist/abcl.jar' for the rest of these |
---|
21 | instructions. |
---|
22 | |
---|
23 | This compiles the Java source file "Main.java" into a JVM runtime or |
---|
24 | class file named "Main.class". |
---|
25 | |
---|
26 | To run the example (Main.class for example) from a Unix-like OS use: |
---|
27 | |
---|
28 | cmd$ java -cp $ABCL_ROOT/dist/abcl.jar:. Main |
---|
29 | |
---|
30 | or in Windows use: |
---|
31 | |
---|
32 | cmd$ java -cp $ABCL_ROOT/dist/abcl.jar;. Main |
---|
33 | |
---|
34 | where "Main" is the initial class to run in your Java program. |
---|
35 | |
---|
36 | |
---|
37 | abcl_appengine |
---|
38 | ============== |
---|
39 | |
---|
40 | This example shows how to run your servlet off ABCL in general |
---|
41 | and in Google App Engine (GAE) in particular. |
---|
42 | |
---|
43 | When uploading your code to the server, be sure to put abcl.jar |
---|
44 | in war/WEB-INF/lib. |
---|