Hey everyone! A couple of years back, I attempted to cross-compile OpenJDK and JavaFX on an x86 system for my Raspberry Pi Zero (ArmV6HF). I managed to get one of the early builds of Java 17 working after a lot of effort, but then I had to pause the project due to my job. I'm wondering if anyone has successfully compiled the JDK and JavaFX for ArmV6 lately. I'm hoping to avoid starting all over again since Gluon doesn't have releases for this architecture.
3 Answers
You might have some luck compiling a newer version, but keep in mind it might run in interpreter mode, which could be slower than Java 8. ArmV6 is pretty outdated.
What are you planning to use JavaFX for on ArmV6? That's a pretty cool project!
I've got a few projects lined up. One of them is building a GUI for a Pi-Hole integration, using the Sink-Hole on Armv6 along with an ST7789V screen. It manages GPIOs and the Sink-Hole core, showing various stats on a 2.4-inch screen. Another project involves creating small video intercoms and a fingerprint reader with some cool animations. Lastly, I've got a retail product that utilizes embedded and desktop features for document scanning and digital signatures using smartcard readers.
Just a heads up, the x86 ports were deprecated in Java 24 and completely removed in Java 25!

I checked the OpenJDK site, and it seems you can compile the master version, but there are exceptions that could affect performance, and it only runs in headless mode.