title: How to use JavaFX Preloader with stand-alone application in Eclipse?
body: <p>My IDE is Eclipse and my project is a stand-alone JavaFX application (pure CS architecture with OSGI framework).</p>
  <p>How to use preloader thus the preloader would be started before my main application and hid later?</p>
  <p>I found some code here:</p>
  <p><a href="http://docs.oracle.com/javafx/2/deployment/preloaders.htm#BABGGDJG" rel="nofollow noreferrer">http://docs.oracle.com/javafx/2/deployment/preloaders.htm#BABGGDJG</a></p>
  <p>But I still don't know how to deploy the preloader with my startup application in an OSGI framework.</p>
  <p>I give some code of my startup application below:</p>
  <pre><code>public class MyPrjMain extends Application {
      private static Stage primaryStage;
  
      public void start(final Stage stage) throws BusinessException {
          primaryStage = stage;
      
          init(primaryStage);
      
          primaryStage.show();
      }
  }
  </code></pre>