Closed DekosAnjo closed 8 months ago
Since install.sh
from org.freedesktop.Sdk.Extension.openjdk17
only copy {java,keytool,rmiregistry}
to /app/jre/bin
, most of JDK component is not included, which is required by Gradle.
One possible solution is to use installjdk.sh
to bundle entire JDK, but considering that some users might not exporting with Gradle or Android at all, the final app size would be unnecessarily large.
I would suggest reverting #155 to let wrapper script locating OpenJDK by JAVA_HOME
environment variable again, and update the documentation to mention installing org.freedesktop.Sdk.Extension.openjdk17
to enable Android export/Gradle build. (and modify JAVA_HOME with flatpak override
if users installed different versions)
cc @priahoud
Why not create a custom shell script to copy only what is required by Gradle?
I would suggest reverting #155 to let wrapper script locating OpenJDK by
JAVA_HOME
environment variable again, and update the documentation to mention installingorg.freedesktop.Sdk.Extension.openjdk17
to enable Android export/Gradle build. (and modify JAVA_HOME withflatpak override
if users installed different versions)
The PR I just opened should make it so that org.freedesktop.Sdk.Extension.openjdk17
gets installed with this Flatpak, so that the Godot Flatpak can access it, and that anyone exporting with Android doesn't have to perform the extra step of installing it.
Gradle can't find jlink because it's not include for some reason.
/app/jre/bin/ only have java, keytool and rmiregistry