www.delorie.com/gnu/docs/kawa/kawa_13.html   search  
Buy GNU books!

Kawa, the Java-based Scheme system

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4. How to start up and run Kawa

The easiest way to start up Kawa is to run the `kawa' program. This finds your java interpreter, and sets up `CLASSPATH' correctly. If you have installed Kawa such $PREFIX/bin is in your $PATH, just do:
However, `kawa' only works if you have a Unix-like environment. On some platforms, `kawa' is a program that uses the GNU `readline' library to provide input line editing.

To run Kawa manually, you must start a Java interpreter. How you do this depends on the Java interpreter. For JavaSoft's JDK, you must have the Java interpreter in your PATH. You must also make sure that the kawa/repl.class file, the rest of the Kawa packages, and the standard Java packages can be found by searching CLASSPATH. See section 3.1 Getting and running Java.

Then you do:
java kawa.repl

In either case, you will then get the `#|kawa:1|#' prompt, which means you are in the Kawa read-eval-print-loop. If you type a Scheme expression, Kawa will evaluate it. Kawa will then print the result (if there is a non-"void" result).

4.1 Command-line arguments  
4.2 Running Command Scripts  
4.3 Running a Command Interpreter in a new Window  
4.4 Exiting Kawa  

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003