Open chirontt opened 2 years ago
Update: this plugin seems to try to set a value for some internal property javafx.platform
, and it fails to set it for Windows on Arm64 platform, so my build fails with the above exception. I can "help" with the build command by explicitly specifying a known value for the property (any valid known value such as win
, linux
, or mac
), like:
mvn package -Djavafx.platform=linux
and it works, producing the target\hellofx-1.0.0-SNAPSHOT.jar
artifact.
The above jar can run fine in Windows on Arm64, by using a JDK distribution with embedded JavaFX, like the "Full JDK" distribution from BellSoft for Windows Arm.
Note that the hellofx app can be run with the Maven javafx:run
task, like
mvn javafx:run -Djavafx.platform=linux
if the above-mentioned "Full JDK" is used to run it.
I've got an Arm64 machine running Windows 11 natively (Windows on Arm64). I've installed the OpenJDK for Windows on Arm64 from Microsoft, so Java is available natively on the machine (i.e. no emulation of x86_64 code.) Running the
mvn --version
command shows:When I try to build the gluonhq/gluon-samples' HelloFX project, with the command
mvn package
, it fails to build:I expect that the
mvn package
would at least compile and produce a jar package, even if the jar would fail to run afterwards because of missing JavaFX native libraries for Windows ARM64 platform in Maven Central. But the code fail to even compile, with above errors.