source: trunk/abcl/examples/abcl/README @ 11513

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