Browse Clojure Foundations for Java Developers

Installing Clojure

Install a Clojure toolchain and verify that the REPL and classpath work.

For a Java developer, installing Clojure is less about “getting a language” and more about getting a tight JVM workflow: a launcher, a dependency tool, and a REPL you can attach your editor to.

In modern Clojure, the common default is the Clojure CLI (tools.deps). You will still see Leiningen in older projects, and it is worth being able to recognize both.

What to verify

  • You can start a REPL from the terminal.
  • Your editor can connect and evaluate forms.
  • You can add a dependency and see it on the classpath.
  • You can run tests without fighting the toolchain.

Once this works, later chapters get easier: you can run small experiments, inspect values, and validate claims as you read.

In this section

Revised on Friday, April 24, 2026