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