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 Build a Pomodoro App Adding Styles

Christopher Anatalio
Christopher Anatalio
5,440 Points

Graphics Device initialization failed for:es2, sw

I'm receiving this error regardless of what is entered.

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/47673307.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:73) at JavaTester.main(JavaTester.java:48) 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:73) at JavaTester.main(JavaTester.java:48) 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:73) at JavaTester.main(JavaTester.java:48) 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/47673307.run(Unknown Source) at java.lang.Thread.run(Thread.java:745)

4 Answers

Christopher Anatalio
Christopher Anatalio
5,440 Points

It looks like this was a temporary issue on the backend that Treehouse resolved.

I tried again an hour later with the exact same code and it went through fine.

Tommy Choe
Tommy Choe
38,156 Points

Glad you got it to work Christopher.

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.

I am still getting this error on three separate Code Challenges. I retried the challenges again over the past three days and the error still occurs. I have made a separate post but have not received any replies. Is there an issue on the backend that hasn't been resolved? Not finishing these challenges is very frustrating. Please help!

Tommy Choe
Tommy Choe
38,156 Points

Kyle, you should contact support to see if they could help you. Contact them at help@teamtreehouse.com.

Javi Venti
Javi Venti
13,030 Points

I got the exact same problem during the 'getting started' video. I just create the new 'Sup' project, I comment out the root and I replace it, as in the video and then click on: Run > Main.

I get exactly the same output.

Can anyone give me some feedback on this?