title: Packaging a Swing application with JavaFX components into an executable JAR
body: <p>I am having trouble packaging an application with both Swing and JavaFX components into a JAR file. Running it from Eclipse is fine. But when executing the Jar, errors occur: The main method is run, which calls the constructor of my app. The constructor calls a <code>initAndShowGUI()</code> method, which tries to create a JFXPanel for later addition to a JFrame, but fails with following error message: <code>Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\User\bin\glass.dll</code>. This library seems to be needed by JavaFX but is somehow not loaded. "Pure" JavaFX apps (without Swing) call something like a "preinitialitation" method for JFX that loads all the needed libs, I think (I'm not completely sure). Also, I've found information on how to deploy Java Web Start apps or applets (<a href="http://docs.oracle.com/javafx/2/deployment/deploy_swing_apps.htm" rel="nofollow">http://docs.oracle.com/javafx/2/deployment/deploy_swing_apps.htm</a>), but nothing on "standard" JARs.</p>
  
  <p>Has anybody done this before? I've been looking for a solution a lot but have not been able to find one. Help is highly appreciated!</p>