Ich muss ein paar Programmen auf JavaFX laufen lassen, aber JavaFX aufsetzen funktionierte bisher nicht. Ich habe ein Youtube-Tutorial gefolgt, gegooglt usw, aber mir wurde den folgende langen Fehlerzeilen angezeigt. Vielleicht kann jemand mir sagen, wo es schief gelaufen ist?
Java:
/Users/annamusterfrau/Library/Java/JavaVirtualMachines/temurin-17.0.4.1/Contents/Home/bin/java --module-path /Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib --add-modules=javafx.controls,javafx.fxml -Djava.library.path=/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib -javaagent:/Applications/IntelliJ IDEA Edu 2.app/Contents/lib/idea_rt.jar=51821:/Applications/IntelliJ IDEA Edu 2.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/annamusterfrau/ProgIIJavaFX/out/production/ProgIIJavaFX:/Users/annamusterfrau/.m2/repository/org/openjfx/javafx-fxml/17/javafx-fxml-17.jar:/Users/annamusterfrau/.m2/repository/org/openjfx/javafx-fxml/17/javafx-fxml-17-mac.jar:/Users/annamusterfrau/.m2/repository/org/openjfx/javafx-controls/17/javafx-controls-17.jar:/Users/annamusterfrau/.m2/repository/org/openjfx/javafx-controls/17/javafx-controls-17-mac.jar:/Users/annamusterfrau/.m2/repository/org/openjfx/javafx-graphics/17/javafx-graphics-17.jar:/Users/annamusterfrau/.m2/repository/org/openjfx/javafx-graphics/17/javafx-graphics-17-mac.jar:/Users/annamusterfrau/.m2/repository/org/openjfx/javafx-base/17/javafx-base-17.jar:/Users/annamusterfrau/.m2/repository/org/openjfx/javafx-base/17/javafx-base-17-mac.jar:/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib/javafx-swt.jar:/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib/javafx.web.jar:/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib/javafx.base.jar:/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib/javafx.fxml.jar:/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib/javafx.media.jar:/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib/javafx.swing.jar:/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib/javafx.controls.jar:/Users/annamusterfrau/Downloads/javafx-sdk-21.0.1/lib/javafx.graphics.jar sample.Main
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@21.0.1/com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:283)
at javafx.graphics@21.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:253)
at javafx.graphics@21.0.1/com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:263)
at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:290)
at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:162)
at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:651)
at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:409)
at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1082)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at javafx.graphics@21.0.1/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:95)
at javafx.graphics@21.0.1/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
at java.base/java.lang.Thread.run(Thread.java:833)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1082)
Caused by: java.lang.RuntimeException: No toolkit found
at javafx.graphics@21.0.1/com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:275)
at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:290)
at javafx.graphics@21.0.1/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:162)
at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:651)
at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:409)
at javafx.graphics@21.0.1/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)
... 5 more
Process finished with exit code 1