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 ·
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…
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 ·
Mac App Store
macappstore.org › home › install jenv on mac osx
Install jenv on Mac OSX - Mac App Store
June 12, 2022 - Install jenv on Mac OSX using brew.
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...
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) ...