About
jabba1) is JDK manager that permits to install and switch from JDK
Steps
Install
The installation is done via a powsershell script.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Expression (
Invoke-WebRequest https://github.com/shyiko/jabba/raw/master/install.ps1 -UseBasicParsing
).Content
Jabba is installed in your windows home: C:\Users\userName\.jabba
Usage
For now, you will not find jabba in a dos shell, you need to use powsershell.
How to install a known JDK?
- List all known JDK
jabba ls-remote
jabba install [email protected]
How to install an unknown JDK?
All JDK are declared in the index.json file. If they are not present, you can still install them with an url.
Example with the last GraalVm Release
jabba install [email protected]=zip+https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.2/graalvm-ce-java11-windows-amd64-22.3.2.zip
How to switch?
- List the installed Jdk
jabba ls
- Switch
jabba use [email protected]