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%
Videos
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, ...
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 - 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...
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 ...
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....
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.