JEM is a Java Environment Manager written in Go. It is a tool to manage multiple Java versions.
Download the latest release from the releases page and extract it to a folder of your choice.
Uninstall all other Java versions before installing JEM.
You will need to restart your terminal after installation in order to update your PATH.
Run:
./jem_install
You may need to reload the .bashrc file after installation:
source ~/.bashrc
Run:
jem_install.exe
jem [command] [options]
jem list
Lists the current, installed and installable versions of java
jem install [version] [jre|jdk] (default jdk)
Installs the specified version of java
jem use [version] [jre|jdk] (default jdk)
Sets the current version of java
jem uninstall [version] [jre|jdk] (default jdk)
If you uninstall the current version of java, JEM will save a copy unitl you select a new version.
Uninstalls the specified version of java
Notice: This will remove all installed versions of java
Run:
./jem_uninstall
Run:
jem_uninstall.exe
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This projets use the MIT License.
The java versions are downloaded with Adoptium Api.