This extension contains the OpenJDK 15 Java Runtime Environment (JRE) and Java Developement Kit (JDK).
OpenJDK 15 is the current latest (non-LTS) version.
For the current long-term support (LTS) version, see the OpenJDK 11 extension.
You can bundle the JRE with your Flatpak application by adding this SDK extension to your Flatpak manifest and calling the install.sh script. For example:
{
"id" : "org.example.MyApp",
"branch" : "1.0",
"runtime" : "org.freedesktop.Platform",
"runtime-version" : "20.08",
"sdk" : "org.freedesktop.Sdk",
"sdk-extensions" : [ "org.freedesktop.Sdk.Extension.openjdk" ],
"modules" : [ {
"name" : "openjdk",
"buildsystem" : "simple",
"build-commands" : [ "/usr/lib/sdk/openjdk/install.sh" ]
}, {
"name" : "myapp",
"buildsystem" : "simple",
....
} ]
....
"finish-args" : [ "--env=PATH=/app/jre/bin:/usr/bin" ]
}