All apps/jEnv

jEnv

jenv

jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable.

Runs as jenv|macOS, Linux, Windows|www.jenv.be

Command form

ai-draft · 4 tasks · 5 fields

Choose the global or per-directory Java version and list the versions jEnv knows. Adding JDKs and plugin management are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui jenv

jenv versions

List Java versions
List Java versionsExample values, fixed in this page — nothing here reaches a terminal
Basic
Names only
--bare
Verbose
--verbose
TasksEach one presets the form for one job
List versions
bareverbose
ParametersOnly these flags are editable in the form
Names only
Display only the version.
boolean
--bare
Verbose
Display verbose output.
boolean
--verbose

jenv global

Set global Java version
Set global Java versionExample values, fixed in this page — nothing here reaches a terminal
Basic
Version*
string
TasksEach one presets the form for one job
Set global version
version
ParametersOnly these flags are editable in the form
Version
Version name as shown by jenv versions.
string · positional 0

jenv local

Set local Java version

Writes a .java-version file in the current directory.

Set local Java versionExample values, fixed in this page — nothing here reaches a terminal
Basic
Version*
string
TasksEach one presets the form for one job
Set local version
version
Unset local version
unset
ParametersOnly these flags are editable in the form
Version
Version name as shown by jenv versions.
string · positional 0
Remove local setting
Remove local jEnv settings.
boolean
--unset
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed jenv against its version. A form that does not match your version is not offered.