jenv for JVM Version Management

JVM version per project.

Installing

jenv installation is platform-specific but quick. Mac via Homebrew; Linux from upstream GitHub releases. Once installed, the shell hook is the piece that makes auto-switching work.

Per-project version

Per-project pinning is the daily discipline. .java-version in the repo means the whole team gets the right JVM the moment they cd into the project.

Global default

The global default is the fallback for directories without a local pin. Workstation-wide; per-project overrides take precedence whenever they are present.

Versus alternatives

jenv has alternatives that solve overlapping problems. Pick by whether you need polyglot support and how much you want the tool to install JVMs for you.