Installing the Java SDK … yet again … for the eleventy billionth time

Always looking out for that quick and easy way to install the Java SDK. This time, I’m going to try sdkman which is a tool for managing multiple versions of the Java SDK. It’s a little more than that, but that’s what I’m going to use it for.

I’m using Debian 10, so I’ll follow the instructions for Linux.

$ curl -s "" | bash

I still had to open to find the latest version number. I’m sure there’s a way to do that programmatically.

Then, open a new terminal window and run the following:

$ sdk install java 20.0.2-open
Setting java 20.0.2-open as default.

One thing it did do was set the package to be the default… without asking… Anyway, turns out sdk default java 20.0.2-open will set it to the stated version.