Migrate from jabba
javm started as a fork of jabba, so most commands keep their names: install,
use, ls, ls-remote, alias, link, which, deactivate.
Reuse the JDKs jabba installed
javm discovers JDKs under ~/.jabba/jdk. After installing javm, they appear in javm ls with the source jabba
and can be selected without reinstalling:
javm discover refresh
javm ls --details
javm use only removes its own entries from PATH, so jabba's entries are left untouched while both are installed.
What changes
| jabba | javm |
|---|---|
.jabbarc | .java-version (javm does not read .jabbarc) |
~/.jabba | JAVM_HOME (see Configuration) |
jabba alias default <version> | javm default <selector> |
| — | javm exec to run one command with a JDK |
| — | javm update to update installed JDKs |
Version selectors use modern Java numbers: write 8 or 8.0.400 instead of 1.8. See
Selectors and ranges.
Switch over
- Install javm and load its shell integration.
- Remove the jabba initialization line from your shell profile.
- Replace
.jabbarcfiles with.java-version. - When you no longer need the JDKs under
~/.jabba, install the ones you use withjavm installand delete~/.jabba.