Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMinh Duc Nguyen
8,522 PointsAdd an event handler for playButton
I think I'm pretty close but still getting some java.lang.RuntimeException: No toolkit found errors!
Anyone can point me in the right direction?
playButton.setOnAction(evt -> System.out.println("Playing!"));
The full error message is
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 com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:227)
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:173)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:675)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:695)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$152(LauncherImpl.java:182)
at com.sun.javafx.application.LauncherImpl$$Lambda$6/1619170771.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
... 1 more
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 com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:227)
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:173)
at com.sun.javafx.application.PlatformImpl.isFxApplicationThread(PlatformImpl.java:264)
at javafx.application.Platform.isFxApplicationThread(Platform.java:99)
at org.testfx.util.WaitForAsyncUtils.runOnFxThread(WaitForAsyncUtils.java:325)
at org.testfx.util.WaitForAsyncUtils.asyncFx(WaitForAsyncUtils.java:104)
at org.testfx.util.WaitForAsyncUtils.asyncFx(WaitForAsyncUtils.java:90)
at org.testfx.toolkit.impl.ToolkitServiceImpl.setupFixture(ToolkitServiceImpl.java:82)
at org.testfx.api.FxToolkit.setupFixture(FxToolkit.java:241)
at org.testfx.api.FxToolkit.cleanupStages(FxToolkit.java:268)
at com.teamtreehouse.contextmanagers.JavaFXManager.onExit(JavaFXManager.java:38)
at com.teamtreehouse.contextmanagers.ContextManageable.managing(ContextManageable.java:37)
at JavaTester.run(JavaTester.java:71)
at JavaTester.main(JavaTester.java:45)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
at java.lang.Thread.run(Thread.java:745)
Error on exiting
java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:185)
at com.sun.javafx.application.PlatformImpl.isFxApplicationThread(PlatformImpl.java:264)
at javafx.application.Platform.isFxApplicationThread(Platform.java:99)
at org.testfx.util.WaitForAsyncUtils.runOnFxThread(WaitForAsyncUtils.java:325)
at org.testfx.util.WaitForAsyncUtils.asyncFx(WaitForAsyncUtils.java:104)
at org.testfx.util.WaitForAsyncUtils.asyncFx(WaitForAsyncUtils.java:90)
at org.testfx.toolkit.impl.ToolkitServiceImpl.setupFixture(ToolkitServiceImpl.java:82)
at org.testfx.api.FxToolkit.setupFixture(FxToolkit.java:241)
at org.testfx.api.FxToolkit.cleanupStages(FxToolkit.java:268)
at com.teamtreehouse.contextmanagers.JavaFXManager.onExit(JavaFXManager.java:38)
at com.teamtreehouse.contextmanagers.ContextManageable.managing(ContextManageable.java:37)
at JavaTester.run(JavaTester.java:71)
at JavaTester.main(JavaTester.java:45)
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No toolkit found
at org.testfx.util.WaitForAsyncUtils.waitFor(WaitForAsyncUtils.java:150)
at org.testfx.api.FxToolkit.waitForLaunch(FxToolkit.java:286)
at org.testfx.api.FxToolkit.registerPrimaryStage(FxToolkit.java:128)
at com.teamtreehouse.contextmanagers.JavaFXManager.onEnter(JavaFXManager.java:27)
at com.teamtreehouse.contextmanagers.ContextManageable.managing(ContextManageable.java:34)
at JavaTester.run(JavaTester.java:71)
at JavaTester.main(JavaTester.java:45)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No toolkit found
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:272)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:96)
at org.testfx.util.WaitForAsyncUtils.waitFor(WaitForAsyncUtils.java:144)
... 6 more
Caused by: java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:185)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:675)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:695)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$152(LauncherImpl.java:182)
at com.sun.javafx.application.LauncherImpl$$Lambda$6/1619170771.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
2 Answers
Minh Duc Nguyen
8,522 PointsFunny that I tried it again just then and it pass me with flying colors. I guess there's some trouble in the backend that has been resolved
Javi Venti
13,030 PointsI had this problem on my local machine, the problem was that I was using the Linux x86 SDK when my computer runs on Ubuntu 64.
Probably, your code is handled by a server that has the same problem.
I just did this code challenge and I can't get it to pass probably because of the same thing.
Guess I'll contact support.