


Here’s the output on my machine /Users/powers/.jenv/shims:/Users/powers/.jenv/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin. jenv paths that are prepended to the standard PATH directories. Restart your Terminal, run echo $PATH, and verify the output contains.

Run these commands to update your PATH: echo 'export PATH="$HOME/.jenv/bin:$PATH"' > ~/.zshrc Jenv uses the shim design pattern to route commands to the appropriate Java version. This blog post shows you how to get jenv setup on your computer and how to use the important commands. Spark developers should use Java 8 for Spark 2 projects and Java 11 for Spark 3 projects for example. Running multiple Java versions is important for Android and Apache Spark developers. It also makes it easy to seamlessly switch between Java versions when you switch projects. Jenv makes it easy to run multiple versions of Java on a Mac computer.
