@danko9 In my experience, the Oracle JDK runs really slowly on ARM devices. For embedded systems, I'd still recommend 'native' languages like C or if you're willing to live on the edge, maybe even Rust.
If you don't like those languages, you could still use JNI to at least do the heavy lifting in C/Rust and use Kotlin/Java for your Frontend.