🌐
Homebrew
formulae.brew.sh › formula › jenv
Homebrew Formulae: jenv
brew install jenv · Manage your Java environment · https://github.com/jenv/jenv · License: MIT · Development: Pull requests · Formula JSON API: /api/formula/jenv.json · Formula code: jenv.rb on GitHub · Bottle (binary package) installation support provided.
🌐
GitHub
github.com › jenv › jenv
GitHub - jenv/jenv: Manage your Java environment · GitHub
brew install java sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk jenv add "$(/usr/libexec/java_home)" # this will always default to the latest version in /Library/Java/JavaVirtualMachines # or # jenv add /Library/Java/JavaVirtualMachines/openjdk.jdk # or for fish shell (see: https://fishshell.com/docs/current/tutorial.html#command-substitutions) # jenv add (/usr/libexec/java_home)
Starred by 6.6K users
Forked by 398 users
Languages   Shell 99.0% | Dockerfile 1.0%
🌐
Jenv
jenv.be
jEnv - Manage your Java environment
$ git clone https://github.com/jenv/jenv.git ~/.jenv · $ brew install jenv · $ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile $ echo 'eval "$(jenv init -)"' >> ~/.bash_profile · $ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc $ echo 'eval "$(jenv init -)"' >> ~/.zshrc ·
🌐
GitHub
gist.github.com › leifericf › f61c60a9ab889ed752f969e9db2009a0
Installing Java on macOS and Adding It to jEnv · GitHub
Install jEnv using Homebrew: brew install jenv · Add the cask-versions tap to Homebrew: brew tap homebrew/cask-versions · Install Temurin 21 (formerly AdoptOpenJDK): brew install --cask temurin21 · Install other Java versions if necessary: ...
🌐
Medium
ymkfelix.medium.com › how-to-set-up-multiple-java-versions-on-a-macbook-8bae41345f72
How to set up multiple Java versions on a MacBook? | by Ye Min Ko | Medium
August 13, 2024 - Now install jEnv. brew install jenv · After that, you need to activate jEnv. To do that, add the following to your shell profile, e.g., ~/.profile or ~/.zshrc . export PATH="$HOME/.jenv/bin:$PATH" eval "$(jenv init -)" After saving, run the following command to control the JAVA_HOME variable with jEnv.
🌐
Mtnr
mtnr.cloud › install-java-using-homebrew-and-jenv-on-macos
Install Java using Homebrew and jEnv on MacOS – mtnr
Now, that Homebrew is installed, install jEnv, next. It’ll enable you to manage multiple Java installations and to switch easily amongst them. $ brew install jenv · Follow the steps listed in the official jEnv documentation if you’re using a shell other than zsh to configure jEnv.
🌐
Will Warren
willwarren.com › 2023 › 11 › 28 › install-multiple-jdks-with-jenv-and-homebrew-on-macos
Install and Use Multiple JDKs with jenv and Homebrew on macOS | Will Warren
November 28, 2023 - It goes over installation of jenv and various temurin JDKs as well as how to switch between them super easily. ... brew tap homebrew/cask-versions brew search temurin # this will list all the versions you can install brew install --cask temurin17 temurin20 temurin21 # etc...
Find elsewhere
🌐
Mehmet Baykar
mehmetbaykar.com › home › macos › how to set up jenv on macos
How to Set Up jEnv on macOS | Mehmet Baykar
December 27, 2025 - Before you can add Java versions to jEnv, you need to ensure that the Java Development Kit (JDK) is properly linked to a location that jEnv can access. First, install the desired Java versions using Homebrew.
🌐
DEV Community
dev.to › gabethere › installing-java-on-a-mac-using-homebrew-and-jevn-12m8
Brew Install Java: Installing Java on MacOS using Homebrew and JEnv - DEV Community
August 28, 2020 - Use brew install [--cask] instead. ... Which worked great, and obviously the openjdk version has changed... but thanks again for a great guide! ... I don't want to be that guy, but I think there is a typo in the Title. jenv vs jevn
🌐
Medium
medium.com › @oyvind.ahlstrom › setup-jenv-to-manage-multiple-java-environments-f1d896a31b5b
Setup jEnv to manage multiple Java environments | by Øyvind Ahlstrøm | Medium
January 30, 2020 - Open a terminal and install jEnv through Homebrew with the command: brew install jenv · After jEnv has successfully downloaded you need to update the configuration file for your terminal.
🌐
Liangzhou
liangzhou.dev › home › manage multiple java versions on mac o s using brew and jenv
Manage multiple java versions on macOS using brew and jenv - TODO Learn More
➜ ~ brew update ➜ ~ brew install jenv /usr/local/Cellar/jenv/0.4.4: 78 files, 66KB, built in 1 second ➜ ~ which jenv /usr/local/bin/jenv ➜ ~ jenv --version jenv 0.4.4 ➜ ~ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc ➜ ~ ...
🌐
Medium
medium.com › @cmonzon › setting-up-java-in-macos-using-jenv-and-homebrew-58598b09283f
Setting up Java in MacOS using jenv and Homebrew - Carlos Monzón - Medium
August 30, 2024 - Setting up Java in MacOS using jenv and Homebrew Full documentation: https://github.com/jenv/jenv 1. Install Homebrew 2. Install jenv brew install jenv Don’t forget to activate jenv, otherwise the …
🌐
Mr N
bigsoft.co.uk › blog › 2025 › 11 › 07 › installing-all-the-javas-on-a-mac-and-switching-between-them
Installing all the Javas on a Mac and switching between them
November 7, 2025 - brew install openjdk@8 brew install openjdk@11 brew install openjdk@17 brew install openjdk@21 brew install openjdk@25 ... After the install has completed add this to your ~/.bash_profile and restart the shell. export PATH="$HOME/.jenv/bin:$PATH" eval "$(jenv init -)"
🌐
Rob Allen
akrabat.com › using-jenv-to-select-java-version-on-macos
Using jenv to select Java version on macOS – Rob Allen
December 2, 2020 - Firstly install jenv, the latest Java (15 at this time) and any other versions you need. Java 8 and 12 in this example: $ brew install jenv $ brew install java $ brew tap AdoptOpenJDK/openjdk $ brew install --cask adoptopenjdk12 $ brew install ...
🌐
Medium
medium.com › ayuth › set-up-multiple-java-dev-environments-for-macos-2025-edition-5aa4335f3d70
Set up Multiple Java Dev Environments for macOS — 2025+ Edition
November 3, 2025 - We’ll install jenv using Homebrew: $ brew install jenv ==> Fetching downloads for: jenv ==> Downloading https://ghcr.io/v2/homebrew/core/jenv/manifests/0.5.9 Already downloaded: /Users/ayuth/Library/Caches/Homebrew/downloads/9027b15da7ef5...
🌐
Baeldung
baeldung.com › home › java › managing multiple jdk installations with jenv
Managing Multiple JDK Installations With jEnv | Baeldung
May 2, 2025 - This indicates that jenv is correctly installed and loaded, but Java isn’t yet installed. Further, let’s take a look at how we can install and manage multiple JDK versions. Let’s start by setting up a JDK version. We can install the JDK with one of the available package managers like brew, yum, or apt.