jenv
Command-line tool to manage the "JAVA_HOME" environment variable. More information: https://www.jenv.be/.
-
Add a Java version to jEnv:
jenv add {{path/to/jdk_home}}
-
Display the current JDK version used:
jenv version
-
Display all managed JDKs:
jenv versions
-
Set the global JDK version:
jenv global {{java_version}}
-
Set the JDK version for the current shell session:
jenv shell {{java_version}}
-
Enable a jEnv plugin:
jenv enable-plugin {{plugin_name}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.