Overview:
Jabba
- is a version manager tool for Java. It eases the process of installation and switching between different versions of the Java runtimes.
Installation:
- Export the latest Jabba version:
export JABBA_VERSION=0.11.2
- Download and run the installation script (modifies rc files):
curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
- Optional. To skip modification of rc files use
-skip-rc
flag:curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash -s -- --skip-rc && . ~/.jabba/jabba.sh
- Confirm the installation:
jabba --version
Basic commands:
- To list available remote versions of Java runtime to download and install:
jabba ls-remote
- To download and install specific version of Java (openjdk@1.11.0-1):
jabba install openjdk@1.11.0-1
- To list current installed versions of Java on your system:
jabba ls
- To uninstall specific version of Java:
jabba uninstall openjdk@1.11.0-1
Notes:
- The
rc
at the end of a file is related to the phrase "run commands"; its use derives from the/etc/rc. *
files used to start most Unix systems. The rc suffix is commonly used for any file that contains startup information for a program. - Jabba is useful in many cases. One such case is when you need to install Jenkins on your system, which requires specific versions of OpenJDK platform.