Setting Up Your Environment

Clojure requires the Java Virtual Machine (JVM) to run, and you will need a working Java Development Kit, version 1.6 or higher.[3] Clojure distribution is provided as a JAR that simply needs to be available on your project’s classpath. Clojure applications can be built with the standard Java tools, such as Maven and Ant;[4][5] however, I strongly recommend that you use Leiningen,[6] which is designed specifically for Clojure.

Managing Projects with Leiningen

Leiningen lets you create, build, test, package, and deploy your projects. In other words, it’s your one-stop shop for all your project-management-related needs.

Leiningen is the Clojure counterpart of Maven, a popular tool for managing Java dependencies. ...

Get Web Development with Clojure 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.