Browse Clojure Foundations for Java Developers

Installing Java (If Needed)

Pick a supported JDK and ensure your terminal and build tools use it consistently.

Clojure runs on the JVM, so your REPL is just a JVM process. If you already have a working JDK for Java development, you may be done. If not, install a supported JDK and make sure your shell and tools agree on which one is active.

What to verify

  • java -version reports the JDK you expect.
  • JAVA_HOME (if you use it) points to the same installation.
  • Your build tool (Maven/Gradle) and your Clojure tooling run on the same major version.

Practical rule: avoid “it works in my IDE but not in the terminal” by verifying everything from the terminal first.

Once the JVM is stable, the rest of the Clojure setup becomes straightforward.

In this section

Revised on Friday, April 24, 2026