-
Notifications
You must be signed in to change notification settings - Fork 10
SDKMAN! Install and manage Java versions not listed
Michael Hulse edited this page Apr 1, 2021
·
1 revision
With SDKMAN! you can list available, and see installed, versions of Java like so:
sdk list java
================================================================================
Available Java Versions
================================================================================
Vendor | Use | Version | Dist | Status | Identifier
--------------------------------------------------------------------------------
AdoptOpenJDK | | 16.0.0.j9 | adpt | | 16.0.0.j9-adpt
| | 16.0.0.hs | adpt | | 16.0.0.hs-adpt
| | 11.0.10.j9 | adpt | | 11.0.10.j9-adpt
| >>> | 11.0.10.hs | adpt | installed | 11.0.10.hs-adpt
| | 8.0.282.j9 | adpt | | 8.0.282.j9-adpt
| | 8.0.282.hs | adpt | installed | 8.0.282.hs-adpt
Amazon | | 16.0.0.36.1 | amzn | | 16.0.0.36.1-amzn
| | 15.0.2.7.1 | amzn | | 15.0.2.7.1-amzn
| | 11.0.10.9.1 | amzn | | 11.0.10.9.1-amzn
| | 8.282.08.1 | amzn | | 8.282.08.1-amzn
Azul Zulu | | 16.0.0 | zulu | | 16.0.0-zulu
| | 16.0.0.fx | zulu | | 16.0.0.fx-zulu
| | 15.0.2.fx | zulu | | 15.0.2.fx-zulu
| | 11.0.10 | zulu | | 11.0.10-zulu
| | 11.0.10.fx | zulu | | 11.0.10.fx-zulu
| | 8.0.282 | zulu | | 8.0.282-zulu
| | 8.0.282.fx | zulu | | 8.0.282.fx-zulu
| | 7.0.292 | zulu | | 7.0.292-zulu
BellSoft | | 16.0.0.fx | librca | | 16.0.0.fx-librca
| | 16.0.0 | librca | | 16.0.0-librca
| | 11.0.10.fx | librca | | 11.0.10.fx-librca
| | 11.0.10 | librca | | 11.0.10-librca
| | 8.0.282.fx | librca | | 8.0.282.fx-librca
| | 8.0.282 | librca | | 8.0.282-librca
GraalVM | | 21.0.0.2.r11 | grl | | 21.0.0.2.r11-grl
| | 21.0.0.2.r8 | grl | | 21.0.0.2.r8-grl
| | 20.3.1.2.r11 | grl | | 20.3.1.2.r11-grl
| | 20.3.1.2.r8 | grl | | 20.3.1.2.r8-grl
| | 19.3.5.r11 | grl | | 19.3.5.r11-grl
| | 19.3.5.r8 | grl | | 19.3.5.r8-grl
Java.net | | 17.ea.15 | open | | 17.ea.15-open
| | 17.ea.14 | open | | 17.ea.14-open
| | 17.ea.5.lm | open | | 17.ea.5.lm-open
| | 17.ea.4.lm | open | | 17.ea.4.lm-open
| | 17.ea.2.pma | open | | 17.ea.2.pma-open
| | 16 | open | | 16-open
| | 11.0.2 | open | | 11.0.2-open
SAP | | 16 | sapmchn | | 16-sapmchn
| | 15.0.2 | sapmchn | | 15.0.2-sapmchn
| | 11.0.10 | sapmchn | | 11.0.10-sapmchn
TravaOpenJDK | | 11.0.9 | trava | | 11.0.9-trava
| | 8.0.232 | trava | | 8.0.232-trava
================================================================================
Use the Identifier for installation:
$ sdk install java 11.0.3.hs-adpt
================================================================================
Let’s search for just hs-adpt
:
sdk list java | grep hs-adpt ✔
| | 16.0.0.hs | adpt | | 16.0.0.hs-adpt
| >>> | 11.0.10.hs | adpt | installed | 11.0.10.hs-adpt
| | 8.0.282.hs | adpt | installed | 8.0.282.hs-adpt
Ok, but, what if you want AdoptOpenJDK v15.x
?
Well, just run sdk install java 15.0.1.hs-adpt
.
Now:
sdk list java ✔ 49s
================================================================================
Available Java Versions
================================================================================
Vendor | Use | Version | Dist | Status | Identifier
--------------------------------------------------------------------------------
AdoptOpenJDK | | 16.0.0.j9 | adpt | | 16.0.0.j9-adpt
| | 16.0.0.hs | adpt | | 16.0.0.hs-adpt
| >>> | 15.0.1.hs | adpt | local only | 15.0.1.hs-adpt
| | 11.0.10.j9 | adpt | | 11.0.10.j9-adpt
| | 11.0.10.hs | adpt | installed | 11.0.10.hs-adpt
| | 8.0.282.j9 | adpt | | 8.0.282.j9-adpt
| | 8.0.282.hs | adpt | installed | 8.0.282.hs-adpt
Amazon | | 16.0.0.36.1 | amzn | | 16.0.0.36.1-amzn
| | 15.0.2.7.1 | amzn | | 15.0.2.7.1-amzn
| | 11.0.10.9.1 | amzn | | 11.0.10.9.1-amzn
| | 8.282.08.1 | amzn | | 8.282.08.1-amzn
Azul Zulu | | 16.0.0 | zulu | | 16.0.0-zulu
| | 16.0.0.fx | zulu | | 16.0.0.fx-zulu
| | 15.0.2.fx | zulu | | 15.0.2.fx-zulu
| | 11.0.10 | zulu | | 11.0.10-zulu
| | 11.0.10.fx | zulu | | 11.0.10.fx-zulu
| | 8.0.282 | zulu | | 8.0.282-zulu
| | 8.0.282.fx | zulu | | 8.0.282.fx-zulu
| | 7.0.292 | zulu | | 7.0.292-zulu
BellSoft | | 16.0.0.fx | librca | | 16.0.0.fx-librca
| | 16.0.0 | librca | | 16.0.0-librca
| | 11.0.10.fx | librca | | 11.0.10.fx-librca
| | 11.0.10 | librca | | 11.0.10-librca
| | 8.0.282.fx | librca | | 8.0.282.fx-librca
| | 8.0.282 | librca | | 8.0.282-librca
GraalVM | | 21.0.0.2.r11 | grl | | 21.0.0.2.r11-grl
| | 21.0.0.2.r8 | grl | | 21.0.0.2.r8-grl
| | 20.3.1.2.r11 | grl | | 20.3.1.2.r11-grl
| | 20.3.1.2.r8 | grl | | 20.3.1.2.r8-grl
| | 19.3.5.r11 | grl | | 19.3.5.r11-grl
| | 19.3.5.r8 | grl | | 19.3.5.r8-grl
Java.net | | 17.ea.15 | open | | 17.ea.15-open
| | 17.ea.14 | open | | 17.ea.14-open
| | 17.ea.5.lm | open | | 17.ea.5.lm-open
| | 17.ea.4.lm | open | | 17.ea.4.lm-open
| | 17.ea.2.pma | open | | 17.ea.2.pma-open
| | 16 | open | | 16-open
| | 11.0.2 | open | | 11.0.2-open
SAP | | 16 | sapmchn | | 16-sapmchn
| | 15.0.2 | sapmchn | | 15.0.2-sapmchn
| | 11.0.10 | sapmchn | | 11.0.10-sapmchn
TravaOpenJDK | | 11.0.9 | trava | | 11.0.9-trava
| | 8.0.232 | trava | | 8.0.232-trava
================================================================================
Use the Identifier for installation:
$ sdk install java 11.0.3.hs-adpt
================================================================================
Note that it says local only
for the status. I think that the docs talk about local versions here.
To uninstall a local version:
sdk uninstall java 15.0.1.hs-adpt
The docs say:
Note that removing a local version will not remove the local installation.
I think that means, you can navigate to ~/.sdkman/archives
and delete the file archive (.zip
).