title: JavaFX NoClassDefFoundError
body: <p>I have installed JDK 8 a bit ago, to use the WebView, but I got an error. The error was this:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: 
  javafx/embed/swing/JFXPanel
  </code></pre>
  
  <p>I don't know why the Swing isn't embed into JavaFX for JDK 8, but anyone know how to fix this?</p>
  
  <p>[ java -version output ]</p>
  
  <p>java version "1.8.0_11"
  Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
  Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)</p>
  
  <p>Question is solved, I just needed to check in the Run Configuration that the right JRE was used.</p>
  
  <p>Another question. It said the "source isn't attached" (I think the jfxrt.jar is not there where its supposed to be.) Any suggestions?</p>