I'm currently trying to convert my java project into a flatpak package. But, in order to run the .jar file i need java which looks like isn't part of the freedesktop runtime. Is there any runtime that comes with java or do I have to make the jdk part of my flatpak package?
I found the solution myself. There are extensions for the freedesktop sdk starting with org.freedesktop.Sdk.Extension. With the help of this openjdk11 extension, I was able to correctly add the jre to my flatpak package