Why javm
Builds use the project's JDK
javm exec mvn verify reads .java-version and runs the build with that JDK. No shell setup, so it works the same in CI, scripts, and IDE launchers.
Native on Windows
Works in PowerShell and Command Prompt as well as Bash, Zsh, Fish, and Nushell. No WSL or Git Bash. See Java on Windows.
Any JDK distribution
Temurin, Zulu, Corretto, GraalVM, and every other distribution in the Foojay Disco API, selected by version or range such as ~21.0.2.
Reuses the JDKs you have
Finds JDKs installed by your system, IntelliJ IDEA, Gradle, or jabba, and javm link registers any other.
Keeps JDKs up to date
javm update installs the newest build of each installed line and removes the old one unless something still selects it.
One binary, verified install
A single static binary with no JVM required. The installers check SHA-256 checksums, and build provenance can be verified. Apache-2.0 licensed.
Frequently asked questions
Does javm change my system Java?
No. javm use changes PATH and JAVA_HOME only in the current shell, and javm exec only for the command it runs. javm never edits system alternatives, the Windows registry, or shell profiles.
Does it switch automatically when I enter a project?
No. Run javm use or javm exec in the project; both read .java-version. See Switch Java versions.
Can I use it in CI?
Yes. Install a pinned release, run javm install, and run builds with javm exec. Exit codes are stable. See Use javm in CI.
How is javm different from SDKMAN, jEnv, or mise?
javm only manages JDKs, runs natively in PowerShell and Command Prompt, and runs builds with javm exec. SDKMAN and mise also manage other tools; jEnv does not install JDKs. See javm compared with other tools.
I use jabba. Can I switch?
javm is a maintained fork of jabba and finds the JDKs jabba installed. See Migrate from jabba.
Is it stable?
Yes: javm 1.0 is the first stable release. Command forms deprecated in 1.0 keep working until 2.0. Pin a release tag for reproducible setups; see Releases & Verification.
Is piping the installer into a shell safe?
The installers verify the SHA-256 checksum of the release archive before extracting it, and can also verify its build provenance. You can read them first or download a release archive yourself; see Installation verification.