All Posts programming Jenv: Manage the "JAVA_HOME" environment variable

Jenv: Manage the "JAVA_HOME" environment variable

· 119 words · 1 minute read

jenv is a command-line tool to manage the “JAVA_HOME” environment variable.

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

More information: https://www.jenv.be/ .

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .