Appendix. Installing Clojure

You have a few options for installing a Clojure compiler and read-evaluate-print loop (REPL) to run Clojure code. (A REPL is a programming language’s interactive command line, like a command prompt or terminal shell.) We’ll survey some options in this appendix, and you can find more options at Clojure’s Getting Started page (http://clojure.org/). But most people will want to install Clojure via the project management tool Leiningen (see section A.3).

In almost every case you’ll first need to install Java 1.6 or greater. To check if you have Java installed, open a command prompt and type the following:

$ java -version java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit ...

Get Clojure in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.