I am testing the Gluon Mobile framework, and have made a small application based on the Afterburner with FXML template from the IntelliJ Idea Gluon plugin.
The application builds and runs successfully on the JVM and I am also able to build a native image (./gradlew nativeBuild
on Linux with GRAALVM_HOME
pointing to 20.3.0.r11-grl).
When I try to run the native image (with ./gradlew nativeRun
) it fails with javafx.fxml.LoadException: biz/nellemann/pwgen/views/main.fxml
. Maybe related to java.lang.ClassNotFoundException: javafx.scene.control.Slider
?
I have looked through the Gluon docs and searched for similar errors, but have not been able to solve my problem. I hope someone can take a look and enlighten me.
The full trace can be seen at https://pastebin.pl/view/f75a0138, and the source for my test project is available at https://bitbucket.org/mnellemann/pwgen-gluon/.
Thanks in advance, Mark