jenv
Manage your Java environment
Subcommands
Name | Description |
---|---|
commands | List all available JEnv commands |
help | Parses and displays help contents from a command's source file |
info | Show information about which command will be executed |
add | Add JDK into jenv. A alias name will be generated by parsing "java -version" |
enable-plugin | Activate a jEnv plugin |
disable-plugin | Deactivate a jEnv plugin |
doctor | Run jEnv diagnostics |
exec | Runs an executable by first preparing PATH so that the selected Java version's `bin' directory is at the front |
global | Sets the global Java version |
global-options | Sets the global Java options |
local | Sets the local application-specific Java version by writing the version name to a file named `.java-version' |
local-options | Sets the local application-specific Java options |
shell | Sets a shell-specific Java version by setting the `JENV_VERSION' |
shell-options | Sets the shell-specific Java options |
hooks | List hook scripts for a given jenv command |
init | Configure the shell environment for jenv |
javahome | Display path to selected JAVA_HOME |
macos-javahome | Installs a file located at ~/Library/LaunchAgents/jenv-environment.plist . It sets JAVA_HOME for GUI applications on startup for the **currently active version of Java** |
options | Show the current Java options |
options-file | Detect the file that sets the current jenv jvm options |
options-file-read | Read options from file |
options-file-write | Write options to a file |
prefix | Displays the directory where a Java version is installed |
refresh-plugins | Refresh plugins links |
refresh-versions | Refresh alias names |
rehash | Rehash jenv shims (run this after installing executables) |
remove | Remove JDK installations |
root | Display the root directory where versions and shims are kept |
shims | List existing jenv shims |
version | Shows the currently selected Java version and how it was selected |
versions | Lists all Java versions found in `$JENV_ROOT/versions/*' |
whence | List all Java versions that contain the given executable |
which | Displays the full path to the executable that jenv will invoke when you run the given command |
Options
Name | Description |
---|---|
--help, -h | Show help for jEnv |
--version | Show version for jEnv |