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.
Tip
Canonical announced to finally publish recent JDK builds itself! 🎉 See their press announcement. However, it seems like they will only include specific JDK releases (please send them this video about "LTS" versions) in Ubuntu LTS updates.
Depending on whether Ubuntu will publish future "non-LTS" JDKs, the need for this project might diminish and we will archive this repo eventually. But only time will tell.
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-19to 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.