jenv

Command line tool to manage the "JAVA_HOME" environment variable.

TLDR

Add a java version to jEnv

$ jenv add [path/to/jdk_home]
copy

Display the current JDK version used

$ jenv version
copy

Display all managed JDKs

$ jenv versions
copy

Set the global JDK version

$ jenv global [java_version]
copy

Set the JDK version for the current shell session

$ jenv shell [java_version]
copy

Enable a jEnv plugin

$ jenv enable-plugin [plugin_name]
copy

Copied to clipboard
free 100$ digital ocean credit