title: Compile code using JavaFX 2.0 (using command line)
body: <p>I wonder how to compile code using JavaFX, from a Windows shell.</p>
  
  <p>I have this code in <code>fxservidor.java</code>:</p>
  
  <pre><code>public class Fxservidor extends Application {
  
      /**
       * @param args the command line arguments
       */
      public static void main(String[] args) {
          launch(args);
      }
  
      @Override
      public void start(Stage primaryStage) {        
          primaryStage.setTitle("Hello World!");
          Button btn = new Button();
          btn.setText("Say 'Hello World'");
          btn.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
  
              @Override
              public void handle(ActionEvent event) {
                  Synthetizer os = new Synthetizer("Ximena");                
              }
          });
  
          StackPane root = new StackPane();
          root.getChildren().add(btn);
          primaryStage.setScene(new Scene(root, 300, 250));
          primaryStage.show();
      }
  }
  </code></pre>