This is a OpenJDK build, published in a PPA.
Ubuntu lags behind publishing the latest JDK versions. While you would usually download the JDK yourself or use SDKMAN, but this is not an option during PPA builds, because you're not allowed to download anything.
ppa-openjdk to the rescue! Other than the distro's main package sources, your build may also depend on other PPAs, such as this one.
Let's say you want to use JDK 19 on Ubuntu Focal:
- add
coffeelibs-jdk-19
to your package's build dependencies - make your PPA depend on this one
- during your build
export JAVA_HOME=/usr/lib/jvm/java-19-coffeelibs
* - use it, e.g. by running
${JAVA_HOME}/bin/jlink
* Please note, that this package does not set up any paths or symlinks itself.
To locally build a JDK, use build.sh
.