Running.xhtml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:pls="http://www.w3.org/2005/01/pronunciation-lexicon" xmlns:ssml="http://www.w3.org/2001/10/synthesis" xmlns:svg="http://www.w3.org/2000/svg">
  3. <head>
  4. <title>How to start up and run Kawa</title>
  5. <link rel="stylesheet" type="text/css" href="docbook-epub.css"/>
  6. <link rel="stylesheet" type="text/css" href="kawa.css"/>
  7. <script src="kawa-ebook.js" type="text/javascript"/>
  8. <meta name="generator" content="DocBook XSL-NS Stylesheets V1.79.1"/>
  9. <link rel="prev" href="pt01.xhtml" title="Part . Reference Documentation"/>
  10. <link rel="next" href="Options.xhtml" title="Command-line arguments"/>
  11. </head>
  12. <body>
  13. <header/>
  14. <section class="chapter" title="How to start up and run Kawa" epub:type="chapter" id="Running">
  15. <div class="titlepage">
  16. <div>
  17. <div>
  18. <h2 class="title">How to start up and run Kawa</h2>
  19. </div>
  20. </div>
  21. </div>
  22. <p>The easiest way to start up Kawa is to run the ‘<code class="literal">kawa</code>’ program.
  23. This finds your Java interpreter, and sets up ‘<code class="literal">CLASSPATH</code>’ correctly.
  24. If you have installed Kawa such that <code class="literal">$PREFIX/bin</code> is in your <code class="literal">$PATH</code>,
  25. just do:
  26. </p>
  27. <pre class="screen">kawa
  28. </pre>
  29. <p>However, ‘<code class="literal">kawa</code>’ only works if you have a Unix-like environment.
  30. On some platforms, ‘<code class="literal">kawa</code>’ is a program that uses the GNU
  31. ‘<code class="literal">readline</code>’ library to provide input line editing.
  32. </p>
  33. <p>To run Kawa manually, you must start a Java Virtual Machine.
  34. How you do this depends on the Java implementation.
  35. For Oracle’s JDK, and some other implementations, you must have the
  36. Java evaluator (usually named <code class="literal">java</code>) in your <code class="literal">PATH</code>.
  37. You must also make sure that the <code class="literal">kawa/repl.class</code> file,
  38. the rest of the Kawa packages, and the standard Java
  39. packages can be found by searching CLASSPATH.
  40. See <a class="link" href="Running-Java.xhtml" title="Getting and running Java">Running Java</a>.
  41. </p>
  42. <p>Then you do:
  43. </p>
  44. <pre class="screen">java kawa.repl
  45. </pre>
  46. <p>In either case, you will then get the ‘<code class="literal">#|kawa:1|#</code>’ prompt,
  47. which means you are
  48. in the Kawa read-eval-print-loop. If you type a Scheme
  49. expression, Kawa will evaluate it. Kawa will then print the
  50. result (if there is a non-"void" result).
  51. </p>
  52. </section>
  53. <footer>
  54. <div class="navfooter">
  55. <ul>
  56. <li>
  57. <b class="toc">
  58. <a href="Options.xhtml">Command-line arguments</a>
  59. </b>
  60. </li>
  61. <li>
  62. <b class="toc">
  63. <a href="Scripts.xhtml">Running Command Scripts</a>
  64. </b>
  65. </li>
  66. <li>
  67. <b class="toc">
  68. <a href="REPL-Console.xhtml">The REPL (read-eval-print-loop) console</a>
  69. </b>
  70. </li>
  71. <li>
  72. <b class="toc">
  73. <a href="Exiting.xhtml">Exiting Kawa</a>
  74. </b>
  75. </li>
  76. <li>
  77. <b class="toc">
  78. <a href="Compiling.xhtml">Compiling to byte-code</a>
  79. </b>
  80. </li>
  81. </ul>
  82. <p>
  83. Up: <a accesskey="u" href="pt01.xhtml">Part . Reference Documentation</a></p>
  84. <p>
  85. Next: <a accesskey="n" href="Syntax.xhtml">Syntax</a></p>
  86. </div>
  87. </footer>
  88. </body>
  89. </html>