🌐
GitHub
github.com › jenv › jenv
GitHub - jenv/jenv: Manage your Java environment · GitHub
Use your platform appropriate package manager to install java. On macOS, brew is recommended. This document will show you how to install jenv, review its most common commands, show example workflows and identify known issues.
Starred by 6.6K users
Forked by 398 users
Languages   Shell 99.0% | Dockerfile 1.0%
🌐
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 - First, install the desired Java versions using Homebrew. For example, to install Java 11 and 17: After installing the Java versions, you must create symbolic links in /Library/Java/JavaVirtualMachines/, which is the standard location for JDK installations on macOS.
🌐
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 ·
🌐
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 ...
🌐
MacPorts
ports.macports.org › port › jenv
Install jenv on macOS with MacPorts
If not done already, install MacPorts. To install jenv, run the following command in macOS terminal (Applications->Utilities->Terminal)
🌐
MungingData
mungingdata.com › java › jenv-multiple-versions-java
Running Multiple Versions of Java on MacOS with jenv - MungingData
Here's the command to install Java 11: brew cask install adoptopenjdk/openjdk/adoptopenjdk11. Remember that Java versions need to be manually added to jenv. List the Java virtual machines with ls -1 /Library/Java/JavaVirtualMachines.
🌐
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 - Using Brew install all the major version of Java All without having to restart the shell! The more observant of you will notice I used the keyword global. This sets to the default version. You can also use the keyword local which fixes the java version…
🌐
Medium
medium.com › javarevisited › manage-java-versions-with-jenv-6b8228552661
Manage Java Versions with jEnv. Master your Java Environment | by Jayson GCS | Javarevisited | Medium
September 11, 2023 - jEnv supports Linux and MacOS only, but it is possible to install it on Windows by installing Windows Subsystem for Linux.
Find elsewhere
🌐
LinuxTut
linuxtut.com › en › 87b75113da8fb2683f00
[JAVA] Install and configure jenv on macOS
January 25, 2020 - jenv shell 11.0.2 · Install Java 8 where Java 11.0.2 is installed · brew cask install adoptopenjdk8 brew cask install caskroom/versions/adoptopenjdk8 · Install the latest version of Java 8 in a special directory on macOS by the above · $ ls -1 /Library/Java/JavaVirtualMachines adoptopenjdk-8.jdk openjdk-11.0.2.jdk ·
🌐
GitHub
gist.github.com › leifericf › f61c60a9ab889ed752f969e9db2009a0
Installing Java on macOS and Adding It to jEnv · GitHub
Installing Java on macOS and Adding It to jEnv · Raw · 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 ...
🌐
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 - $ 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/9027b15da7ef5210164c80246e675d8c3bccdf0dcc361f9c37...
🌐
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 - brew tap homebrew/cask-versions brew search temurin # this will list all the versions you can install brew install --cask temurin17 temurin20 temurin21 # etc... ... jenv add /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home jenv add /Library/Java/JavaVirtualMachines/temurin-20...
🌐
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 …
🌐
LinuxTut
linuxtut.com › en › 9a6747084bcfd4df07a6
[JAVA] How to set up and operate jEnv (Mac)
April 4, 2018 - # jEnv export JENV_ROOT="$HOME/.jenv" ... eval "$(jenv init -)" fi · There are many articles installed with brew cask, but this time I will drop the installer from Oracle and install it manually. Install the required version of the JDK by referring to the following article. -How to install past version of Java (JDK 10 or earlier) (Mac) ...
🌐
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.
🌐
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