LinuxCommandLibrary

jenv

manages multiple Java JDK installations and sets JAVA_HOME automatically

TLDR

Add a JDK

$ jenv add [/path/to/java/home]
copy
List installed versions
$ jenv versions
copy
Show current version
$ jenv version
copy
Set global Java version
$ jenv global [11.0.20]
copy
Set local version for directory
$ jenv local [17.0.1]
copy
Set version for current shell
$ jenv shell [11.0.20]
copy
Enable a plugin
$ jenv enable-plugin [export]
copy
Check configuration
$ jenv doctor
copy

SYNOPSIS

jenv command [arguments]

DESCRIPTION

jenv manages multiple Java JDK installations and sets JAVAHOME automatically. It does not install JDKs itself. Version priority: shell > local > global. Use the **export** plugin for JAVAHOME support. Creates .java-version files for local versions.

SUBCOMMANDS

add path

Add a JDK installation.
versions
List available versions.
version
Show current active version.
global version
Set global default version.
local version
Set directory-specific version.
shell version
Set version for current shell.
enable-plugin name
Enable a plugin.
disable-plugin name
Disable a plugin.
doctor
Verify configuration.

SEE ALSO

java(1), sdkman(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community