Last change
on this file since 11513 was
11513,
checked in by Mark Evenson, 14 years ago
|
Update ABCL<-->Java example instructions.
|
File size:
1.1 KB
|
Line | |
---|
1 | ABCL Examples Building and Running Instructions |
---|
2 | =============================================== |
---|
3 | |
---|
4 | code by Ville Voutilainen |
---|
5 | instructions by Blake McBride |
---|
6 | updated by Mark Evenson |
---|
7 | |
---|
8 | In general, to compile a Java class file (like Main.java for example |
---|
9 | in the 'java_exception_in_lisp' subdirectory) use: |
---|
10 | |
---|
11 | cmd$ cd java_exception_in_lisp |
---|
12 | cmd$ javac -cp ../../../dist/abcl.jar Main.java |
---|
13 | |
---|
14 | where the "../../../dist/abcl.jar" represents the path to your |
---|
15 | abcl.jar file, which is built via the Ant based build. This path |
---|
16 | could be slightly different depending on how the system was |
---|
17 | constructed, and possibly due to operating system conventions for |
---|
18 | specifying relative paths. However you resolve this locally, we'll |
---|
19 | refer to this as '$ABCL_ROOT/dist/abcl.jar' for the rest of these |
---|
20 | instructions. |
---|
21 | |
---|
22 | This compiles the Java source file "Main.java" into a JVM runtime or |
---|
23 | class file named "Main.class". |
---|
24 | |
---|
25 | To run the example (Main.class for example) from a Unix-like OS use: |
---|
26 | |
---|
27 | cmd$ java -cp $ABCL_ROOT/dist/abcl.jar:. Main |
---|
28 | |
---|
29 | or in Windows use: |
---|
30 | |
---|
31 | cmd$ java -cp $ABCL_ROOT/dist/abcl.jar;. Main |
---|
32 | |
---|
33 | where "Main" is the initial class to run in your Java program. |
---|
Note: See
TracBrowser
for help on using the repository browser.