Skip to main content

Java versions,without theenvironment gymnastics

Resolve the Java version a project asks for without replacing your system Java.

$ cat .java-version25
$ javm exec java --versionopenjdk 25.0.x...
javm exec mvn testRun one command with the project JDK
javm use 21Switch the current shell
javm install temurin@21Install a managed JDK

Install javm

Install javm on Linux, macOS, or Windows. Shell integration is optional and only needed for commands that modify the current session.

Shell setup and integration
Linux / macOScurl -fsSL https://javm.dev/install.sh | bash
Windows PowerShellirm https://javm.dev/install.ps1 | iex