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 trial

Java Build a JavaFX Application Graphical User Interfaces Adding an Event Handler

Java FX playButton Runtime Exception

I've entered the code am positive is correct, and have confirmed with others on the forum. Someone else posted with the same issue 3 days ago, saying that there was an issue on the backend and it had been resolved. However that doesn't seem to be the case anymore.

Here is the error:

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/629311521.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/629311521.run(Unknown Source) at java.lang.Thread.run(Thread.java:745)

4 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Hi Kyle!

Digging into this, something changed on the server that we are trying to track down that broke the way I was testing on the server.

Sorry for the inconvenience, your code is correct!

Thanks for letting us know!

I'll keep you posted...this is super weird, but fun!

Javi Venti
Javi Venti
13,030 Points

Ok, figured it out.

I downloaded the x86 version of the dev Kit, while my computer runs on ubuntu x64.

Hope it helps you to troubleshoot if this happens to you.

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

We got it working! Thanks for alerting us Kyle Lockwood !

I've awarded you the Exterminator Badge!

Huge thanks to Nathan Williams for saving the day!

Just entered the code and it worked! Thanks so much for solving the issue, it was really bugging me.

Javi Venti
Javi Venti
13,030 Points

I'm having the exact same problem but on my pc. When I run 'Main' during the 'Getting Started' video, I get the same output in the console.

My pc runs on ubuntu 14.04 and my JDK is version 1.8.0_65

Can any1 help me to solve this?

Thank you so much.