kota's memex

gradle

installing

The easiest way to manage java installations is to just download the ones you want from https://adoptium.net/ and put them in $HOME/.local/opt/java. Then you setup your JAVA_HOME variable to point to the install you want to use currently:
export JAVA_HOME="$HOME/.local/opt/java/jdk-17.0.1+12"

You can also use an alternative's system if your distro supports it. This is what I use on void linux, but some other distros it's just too much of a pain to deal with.