Friday, September 24, 2010

Installing Clojure 1.2

To install Clojure 1.2 create a folder for clojure files in your file system. Lets call the folder clojure. Download the following files into the folder.
clojure-1.2.0.jar from here
clojure-contrib-1.2.0.jar from here.

Clojure requires java JDK so if you don't have it installed then you can download it here.

For Linux, create a shell script called clojure with the following lines and put it in your command path.
java -cp "path/to/clojure/*:$PWD" clojure.main "$@"

For windows create a bat file called clojure.bat with the following content and set your windows path to the clojure folder.

@echo off
java -cp "path\to\clojure\*;." clojure.main %*


  1. Would appreciate article in Clojure development with Lein or CounterClockwise

  2. Just as one option for editors (on Windows) one can use Clojure Box, a pre-configured Emacs for Clojure, which can be installed from

    I'm a beginner with both, Clojure and Emacs, but they do both seem like a very good lifetime tools.

  3. Yes indeed there are many ways to install Clojure. Just make sure you have clojure 1.2 or later. These tutorials will require that. Thanks.