🌐
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%
🌐
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.
🌐
Jenv
jenv.be
jEnv - Manage your Java environment
jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable · $ 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 ·
🌐
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 - The goal of this post is to show ... set our JAVA_HOME path automatically for us just by running a few simple commands. Before we start, ensure that you have homebrew installed and that you have updated all dependencies (ie. run brew upgrade) First, we need to install JEnv using homebrew, ...
🌐
GitHub
gist.github.com › leifericf › f61c60a9ab889ed752f969e9db2009a0
Installing Java on macOS and Adding It to jEnv · GitHub
install-java-macos.md · Install Homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Install jEnv using Homebrew: brew install jenv · Add the cask-versions tap to Homebrew: brew tap ...
🌐
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.
🌐
DEV Community
dev.to › blaytenshi › installing-multiple-java-on-macos-managed-by-jenv-l6i
Installing (multiple) Java on MacOS managed by jEnv - DEV Community
October 7, 2024 - Install with Homebrew as well: $ brew install jenv · Add the following to your shell's .rc file so jenv is executed upon terminal startup · # Setup JEnv to install run export PATH="$HOME/.jenv/bin:$PATH" eval "$(jenv init -)" # Have JAVA_HOME ...
🌐
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 - A short post for anyone who needs to have many different versions of Java installed on their macOS machine. 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
🌐
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 …
🌐
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...
🌐
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.
🌐
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 -)" If you'd like JAVA_HOME and ...
🌐
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 ...
🌐
MungingData
mungingdata.com › java › jenv-multiple-versions-java
Running Multiple Versions of Java on MacOS with jenv - MungingData
Running multiple Java versions ... Java 8 for Spark 2 projects and Java 11 for Spark 3 projects for example. This blog post shows you how to get jenv setup on your computer and how to use the important commands. Install jenv with brew install jenv....
🌐
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 - The following text will provide a step by step tutorial to set up both Java and jEnv for MacOS. Open a terminal and install jEnv through Homebrew with the command: brew install jenv ·
🌐
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.
🌐
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 ➜ ...
🌐
Bekk Christmas
bekk.christmas › post › 2022 › 16 › java-versions-are-easier-with-jenv
Java versions are easier with jEnv | Bekk Christmas
November 7, 2024 - Instead, they can be found on ... homebrew/cask-versions` `brew install — cask temurin11` Then, add it to jEnv by executing jenv add with the full path to the Java variable....
🌐
Medium
sairamkrish.medium.com › local-environment-setup-working-with-multiple-java-versions-9ce61efa5ae3
Java developer setup for learning and experiments | by Sairam Krish | Medium
July 1, 2022 - I haven’t tried this on Windows for this problem. jEnv — is an amazing command line tool that can help us. $ git clone https://github.com/jenv/jenv.git ~/.jenvor$ brew install jenv