arm架构下的jdk没有自带javafx,需要特殊处理,流程如下:
注意需要安装azul jdk,oracle的open jdk11实测运行会有问题
https://www.azul.com/downloads/?version=java-11-lts&os=linux&architecture=arm-64-bit&package=jdk#download-openjdk
https://openjfx.io/
注意需要指定javafx模块路径
java -jar \ --module-path /javafx-path/javafx-sdk-17.0.1/lib \ --add-modules=javafx.controls,javafx.fxml \ app.jar
https://webtechie.be/post/2020-08-27-azul-zulu-java-11-and-gluon-javafx-11-on-armv6-raspberry-pi/