source:
branches/0.20.x/abcl/examples/hello.java
@
15798
Last change on this file since 15798 was 11214, checked in by , 18 years ago | |
---|---|
File size: 410 bytes |
Line | |
---|---|
1 | import org.armedbear.lisp.*; |
2 | |
3 | public class hello |
4 | { |
5 | public static void main(String[] args) |
6 | { |
7 | try |
8 | { |
9 | Interpreter interpreter = Interpreter.createInstance(); |
10 | interpreter.eval("(format t \"Hello, world!~%\")"); |
11 | } |
12 | catch (Throwable t) |
13 | { |
14 | t.printStackTrace(); |
15 | } |
16 | } |
17 | } |
18 | |
19 | // cd ~/j/examples |
20 | // cp hello.java ../src |
21 | // cd ../src |
22 | // javac hello.java |
23 | // java hello |
Note: See TracBrowser
for help on using the repository browser.