'"Graphics Device initialization failed for : es2, sw", M1 MacBook, OpenJDK 17.0.2/11.0.12

Tested with OpenJDK 17.0.2 and 11.0.12. (Via Homebrew)

OpenJFX 17.0.2 and 18-ea+12. (From https://gluonhq.com/products/javafx/)

MacOS 12.2.1 (Monterey). MacBook Air (M1, 2020).

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
...
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
...
Exception in thread "main" java.lang.reflect.InvocationTargetException
...
Caused by: java.lang.RuntimeException: No toolkit found

Oracle's JDK 17 does work. SHA256:

265b8ec9279bf91bb4fd5b4cb69acadce42e80f3462254fbb7300e4e8a1e0657


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source