'OpenJFX on Apple M1 chip
Graphics Device initialization failed for : es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
Exception in thread "main" java.lang.RuntimeException: No toolkit found
I am trying to make OpenJFX to work on Apple MacOS Silicon M1 chip. I use Gradle and it includes:
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.9'
}
javafx {
sdk = '/Users/eosantigen/Documents/javafx-sdk-16'
modules = ['javafx.controls']
}
but I get the error above when I do gradle run
. I also use JDK11. I also get the same error on the official tutorial.
Anyone made it work with Gradle? Or Maven?
Thanks.
Solution 1:[1]
UPDATE:
Finally, I have tried OpenJDK 17 (installed through SDKman, as usual), with the following in build.gradle
:
plugins {
id 'application'
id "org.javamodularity.moduleplugin" version "1.8.10"
id 'org.openjfx.javafxplugin' version '0.0.12'
}
javafx {
version = '17'
modules = ['javafx.controls']
}
And it runs perfectly. (didn't try jdk-11 again with it.)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Eos Antigen |