I’m not familiar with NixOS, so I really can’t help with that missing dependency… regarding the requirements of a JRE, it looks like GraalVM+native-image lets you now compile to native and produce executables that do not require a JVM. Gluon is a company specializing in that, plus offering the tooling to compile JavaFX to iOS/Android too (I haven’t dabbed beyond simple hello worlds with their tech, though).
I’m not familiar with NixOS, so I really can’t help with that missing dependency… regarding the requirements of a JRE, it looks like GraalVM+native-image lets you now compile to native and produce executables that do not require a JVM. Gluon is a company specializing in that, plus offering the tooling to compile JavaFX to iOS/Android too (I haven’t dabbed beyond simple hello worlds with their tech, though).