title: How to solve "Graphics Device initialization failed for : d3d, sw" when running a java Jar file with JavaFx
body: <p>Good Afternoon everyone.</p>
  
  <p>I'm having a problem when I try to run my Java Code as a Runnable Jar file. I'm using Eclipse and I created a normal Java Project. I included the JavaFX jars as a User Libary. The Program runs without a problem when I start it with the IDE. To create the Jar file I use the the build in Export of a Java Project in the Runnable Jar file. 
  When I check "Extract required libaries into generated JAR" and run it, I get this Error Message:</p>
  
  <pre><code>Error: JavaFX runtime components are missing, and are required to run this application
  </code></pre>
  
  <p>When I check "Package required libaries into generated JAR" and run it, I get this Error Message:</p>
  
  <pre><code>Graphics Device initialization failed for :  d3d, 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:244)
          at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260)
          at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
          at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
          at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
          at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
          at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
          at java.base/java.lang.Thread.run(Thread.java:835)
  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
  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:62)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:567)
          at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
  Caused by: java.lang.RuntimeException: No toolkit found
          at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:272)
          at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
          at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
          at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
          at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
          at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
          at java.base/java.lang.Thread.run(Thread.java:835)
  </code></pre>
  
  <p>Does anyone know, why I cannot run the JAR but in the IDE it runs normally?</p>
  
  <p>I installed JavaFX following the Documentation here <a href="https://openjfx.io/openjfx-docs/" rel="nofollow noreferrer">https://openjfx.io/openjfx-docs/</a> .</p>