Java is a host platform for Clojure, on which Clojure projects and tools run. No experience of Java or its platform is required for successful Clojure projects.
If the version is
11 or above, then jump to the Clojure install page
Operating System specific install instructions
sudo apt install openjdk-11-jdk
openjdk-11 not available or not the right version?
If openjdk-11 is not available, add the Ubuntu OpenJDK personal package archive
sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update
sudo update-alternatives --config java
Using Homebrew, run the following command in a terminal to install Java 11:
brew cask install adoptopenjdk11
For Windows 10 use Windows Subsystem for Linux and Windows Terminal are recommended if you have administrative privileges and are happy to use a Unix system on the command line.
Follow the scoop-clojure install instructions, summarized here:
scoop install git scoop bucket add java scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure scoop install adoptopenjdk-lts-hotspot
scoop can also be used to install clojure
Still having problems?
choco install javaruntime
If Chocolatey does not work, then try the manual Java install.
What you need to know about Java
Reading stack traces may benefit from some Java experience, although its usually the first couple of lines in a stack trace that describe the issue.
clojure -Spom will generate a Maven pom.xml file used for deployment. Understanding of a minimal Maven POM (pom.xml) file is useful when managing issues with packaging and deployment.