Referring to the tutorial https://www.b4x.com/android/forum/t...the-simplest-way-to-distribute-ui-apps.99835/Platforms
You must build the package on the target platform.
Windows - Java 11 should already be installed. Note that Java 11 is 64 bit only.
OpenJDK 11 + OpenJFX 11 (SDK + jmods) - GPL + classpath exception license
Mac - https://b4xfiles-4c17.kxcdn.com/b4j/mac_jdk-11.0.1.zip
Linux - https://b4xfiles-4c17.kxcdn.com/b4j/linux_jdk-11.0.1.zip
Where should I extract linux_jdk-11.0.1.zip to?
Answer: I extracted to
/home/{user}/jdk-11.0.1
How do I build the package on the target platform?
Answer:
1. Build Release app from B4J IDE in Windows.
2. Copy B4JApp.jar file from Objects folder to Linux /home.
3. Copy B4JPackager11.jar to Linux /home.
4. Create packager.json in Linux /home
B4X:
{
InputJar: "/home/com/B4JApp.jar",
IncludedModules: ["jdk.crypto.ec"]
}
5. Run the following command in Linux:
B4X:
/home/com/jdk-11.0.1/bin/java -jar B4JPackager11.jar packager.json
6. The package is created in /home/com/temp/build
Last edited: