title: Run JavaFx on Raspberry ClassNotFound
body: <p>i try to start a jar on a raspberry pi. The jar is a gui application and it start a JavaFx stage. </p>
  
  <p>I do all steps like here:
  <a href="https://wimdeblauwe.wordpress.com/2017/08/26/using-javafx-on-raspberry-pi-3-with-gluon/" rel="nofollow noreferrer">https://wimdeblauwe.wordpress.com/2017/08/26/using-javafx-on-raspberry-pi-3-with-gluon/</a>
  but with  the version 1.8.0_161. </p>
  
  <p>Now i start the jar:</p>
  
  <p>sudo /opt/jdk1.8.0_161/bin/java \
      -Djava.ext.dirs=build/armv6hf-sdk/rt/lib/ext \
      -jar Freelancer.jar</p>
  
  <p>and receive the exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:348)
      at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
  Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  </code></pre>
  
  <p>Have some one a idea what is happen here? </p>
  
  <p>Thanks for your help!  </p>