Java tooling in 2026:

"Install JDK 21."
"Actually keep JDK 26."
"Also set JAVA_HOME to something."
"Gradle will ignore it unless it won't."

Jeez, I just wanted to compile an app not perform an ancient ritual.

@fribbledom I'd strongly recommend installing Java using a package manager or using SDKMAN, so that you don't need to touch the PATH variable or any environment variables.

For example, Azul provide their JDK through an APT repo: https://docs.azul.com/core/install/linux-ca-deb#install-from-azul-apt-repository

With SDKMAN, you can install several JDKs (and each one in different versions) and manage which one is used by default. It also allows you to install Maven similarly: https://sdkman.io

Installing Azul Zulu CA DEB-Packages on Linux

docs.azul.com