Skip to main content

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​

jabbajavm
.jabbarc.java-version (javm does not read .jabbarc)
~/.jabbaJAVM_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​

  1. Install javm and load its shell integration.
  2. Remove the jabba initialization line from your shell profile.
  3. Replace .jabbarc files with .java-version.
  4. When you no longer need the JDKs under ~/.jabba, install the ones you use with javm install and delete ~/.jabba.