Skip to content

Commit

Permalink
📝 Update the article on installing Java via Homebrew (#77)
Browse files Browse the repository at this point in the history
* 📝 Update the article on installing Java via Homebrew

* Use URL for an updated version of "Java is Still Free"
* Remove the step that taps the deprecated cask-versions. Temurin was migrated
to homebrew-cask which does not require the tap step
* Update the URL to the Temurin formulas
* Make mention of Temurin continually receiving updates to older versions

* 🐛 Correct the title of 'Java is Still Free'

* 🐛 Use a more accurate brew install command

* --cask isn't needed
* formula naming convention for older temurin versions is different
  • Loading branch information
rszewczyk authored Jan 17, 2025
1 parent 3d79624 commit d7c7b48
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions content/blog/macos-homebrew-openjdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,13 @@ packages and manage multiple versions of Java with built-in shell tools.
Execute `java -version` to double-check that Java is truly gone from the
environment.

1. Add the Cask Versions Tap. This is necessary to install previous releases.
```shell
brew tap homebrew/cask-versions
```
1. Find the Eclipse Temurin HomeBrew packages for the versions of Java you need
```shell
brew search temurin
```
1. Install the JDK versions you need e.g.
```shell
brew install --cask temurin11
brew install temurin@11
```
1. Configure `JAVA_HOME` in your shell with the default version of Java. This
guide assumes you use ZSH because that is the default shell since macOS
Expand Down Expand Up @@ -149,7 +145,7 @@ subscription.
## Why Eclipse Temurin?

There are a lot of OpenJDK distributions to choose from. The excellent article
[Is Java Still Free](https://medium.com/@javachampions/java-is-still-free-2-0-0-6b9aa8d6d244)
[Java is Still Free](https://medium.com/@javachampions/java-is-still-free-3-0-0-ocrt-2021-bca75c88d23b)
is the best resource for navigating these choices. The two most important things
to remember are:

Expand All @@ -170,7 +166,11 @@ up-sell developers. Their mission is
> that can be used free of charge, without usage restrictions on a wide range of
> platforms.
While they do not offer support, Temurin is one of a handful of OpenJDK
distributions that passes the Java Technology Compatibility Kit and provides
free updates (including security) for releases as far back as Java 8.

Sounds good to me 😁. Temurin is readily available in Docker images on
[Docker Hub](https://hub.docker.com/_/eclipse-temurin), in
[HomeBrew packages](https://github.com/AdoptOpenJDK/homebrew-openjdk), and in
archives on [adoptium.net](https://adoptium.net).
[HomeBrew packages](https://formulae.brew.sh/cask/temurin), and in archives on
[adoptium.net](https://adoptium.net).

0 comments on commit d7c7b48

Please sign in to comment.