Skip to content

coffeelibs/ppa-openjdk

Repository files navigation

ppa-openjdk

This is a OpenJDK build, published in a PPA.

Why?

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.

How to use?

Let's say you want to use JDK 19 on Ubuntu Focal:

  1. add coffeelibs-jdk-19 to your package's build dependencies
  2. make your PPA depend on this one
  3. during your build export JAVA_HOME=/usr/lib/jvm/java-19-coffeelibs *
  4. use it, e.g. by running ${JAVA_HOME}/bin/jlink

* Please note, that this package does not set up any paths or symlinks itself.

Building

To locally build a JDK, use build.sh.