## 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 http://build.clojure.org/releases/org/clojure/clojure/1.2.0/
and
clojure-contrib-1.2.0.jar from here. http://build.clojure.org/releases/org/clojure/clojure-contrib/1.2.0/

Clojure requires java JDK so if you don't have it installed then you can download it here.
http://www.oracle.com/technetwork/java/javase/downloads/index.html

For Linux, create a shell script called clojure with the following lines and put it in your command path.
#!/bin/sh
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 %*

#### 3 comments:

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 http://clojure.bighugh.com/

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.