I have started to use SDKMan to simplify my life with installing and updating many software that I use regurlarly. Java is one of them. It is the simplest thing to install java with sdk man:
sdk i java 11.0.8.hs-adpt
As simple as that.
I can just use Java 11 from that point on. You can also install Java 8 and switch between both. Convenient when you have to maintain older software.
If I want to update to a new release, I simply have to type:
sdk ug java
Can it really get any easier?
I use the SDKMan on my linux laptop as well and it easily works on both.
I also manage gradle, spring-boot and spark with SDKMan so most of my coding tools are kept up to date with the same tool.