Open woojiahao opened 11 months ago
Thanks for exploring this fix @woojiahao 💯 Let's hope this can solve the problem for those using using the second method.
Good news, I've managed to test this fix across all OSes on both ARM and x86 and it works for all!
Preface
There has been several issues open about not being able to run the JAR cross-platform for various reasons, most occurring because the Gradle setup for JavaFX was using the following:
The error is a
QuantumReader
error.Solution
I was digging through the official OpenJFX documentation to find a potential fix that continued using the (formerly) second method of importing JavaFX in Gradle:
This is my
build.gradle
now. I've tested out the JAR on a Windows ARM build emulated on Mac M1 Pro machine:I am currently setting up VMs (both emulated and virtualized) on a Macbook Pro 14 (M1 Pro) to test various platforms. Would be great if others could try this fix too and see if it resolves their cross-platform issue.
Note: I still have the Gradle checkstyle plugin so there is no need to delete it when using this method