Jenv Examples on MacOS

Jenv Examples on MacOS

Last updated:
Table of Contents

List available java versions

$ jenv versions
  system
  1.8
  1.8.0.362
  19.0
  19.0.2
  openjdk64-19.0.2
* temurin64-1.8.0.362 (set by /Users/felipe.almeida/.jenv/version)

Add java version installed with homebrew

Example with OpenJDK 11 installed via brew install openjdk@11

Add it to jenv: $ jenv add /usr/local/opt/openjdk@11/libexec/openjdk.jdk/Contents/Home/

References