vmj logo

vmj - Version Manager for Java

Easely install, switch and manage different JRE and JDK versions

Terminal screenshot showing off vmj

Install

Getting started with vmj is very simple, all you need to do is make sure you have NodeJS and npm (v14 recommended) installed on your device.

  1. Install vmj

    Terminal

    $ npm i -g vmj

    Installing vmj...

    ✅ Installed

  2. Update OS environments

    Update your JAVA_HOME env to point to $USER_HOME/.vmj/java and add $USER_HOME/.vmj/java/bin to your PATH env.

  3. Logoff or reboot

    Windows might require you to logoff or restart before your new environment variables are actually loaded.

  4. Start!

    Simply launch vmj to get a full list of available commands.

What you can do

  • Add local version
  • List available
  • List available online
  • Install available online
  • Change used version

You can add existing local installations of Java

Terminal

$ vmj add jdk11 /bin/jdk11

✅ Added JDK11

Available versions

vmj supports many JREs and JDKs with more to come!

ImplementationVersionLTSJREJDKSupported
AdoptOpenJDK21
AdoptOpenJDK20
AdoptOpenJDK19
AdoptOpenJDK18
AdoptOpenJDK17
AdoptOpenJDK16
AdoptOpenJDK15
AdoptOpenJDK14
AdoptOpenJDK13
AdoptOpenJDK12
AdoptOpenJDK11
AdoptOpenJDK10
AdoptOpenJDK9
AdoptOpenJDK8