Skip to content

Commit

Permalink
Update install instructions for Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodCTaylor committed Oct 20, 2023
1 parent 8c64d01 commit cfd8387
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/guides/install_clojure.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ Please provide feedback on https://ask.clojure.org[Ask Clojure] or Clojurians sl
[[java]]
=== Java

Clojure requires Java. Clojure officially supports Java LTS releases (currently Java 8, 11, and 17), but also tries to ensure interim versions work as well. You can use any Java distribution, whether it’s a commercial release from Oracle or an open source version based on OpenJDK (like Temurin). The Clojure tools require only that the `java` command is on the `PATH` or that the `JAVA_HOME` environment variable is set.
Clojure requires Java. Clojure officially supports Java LTS releases (currently Java 8, 11, 17 and 21), but also tries to ensure interim versions work as well. You can use any Java distribution, whether it’s a commercial release from Oracle or an open source version based on OpenJDK (like Temurin). The Clojure tools require only that the `java` command is on the `PATH` or that the `JAVA_HOME` environment variable is set.

If you don't already hava Java installed, we recommend installing Adoptium Temurin 17.
If you don't already hava Java installed, we recommend installing Adoptium Temurin 21.

To use the Adoptium Temurin installers:

Expand All @@ -123,13 +123,13 @@ To use the Adoptium Temurin installers:
On Mac, you can also install Temurin using brew:

* `brew tap homebrew/cask-versions` - add the cask-versions tap to Homebrew
* `brew install --cask temurin17` - install Temurin 17 (formerly AdoptOpenJDK)
* `brew install --cask temurin21` - install Temurin 21 (formerly AdoptOpenJDK)

Check your Java version by running `java --version`. If that's not Temurin 17, then you may then need to add `java` to your `PATH`:
Check your Java version by running `java --version`. If that's not Temurin 21, then you may then need to add `java` to your `PATH`:

[source,shell]
----
echo 'export PATH="/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/bin:$PATH"' >> ~/.zshrc
----

== More information
Expand Down

0 comments on commit cfd8387

Please sign in to comment.