title: Some javafx classes cannot be resolved in Eclipse using Java SE 8u25
body: <p>I installed the Java SE 8u25 JDK (64 Bit) from Oracle, which should include JavaFX.</p>
  
  <p>I'm using Win7 64 Bit, Eclipse Helios and included the jre in the classpath as shown here:
  <img src="https://i.stack.imgur.com/HuyTv.png" alt="enter image description here"></p>
  
  <p>I'm trying to replicate the code from this tutorial:
  <a href="http://docs.oracle.com/javase/8/javafx/get-started-tutorial/hello_world.htm" rel="noreferrer">http://docs.oracle.com/javase/8/javafx/get-started-tutorial/hello_world.htm</a></p>
  
  <p>Eclipse shows me "The type javafx.scene.control.Control cannot be resolved. It is indirectly referenced from required .class files" when trying to use <code>javafx.scene.control.Button.setText(String)</code>.
  A similar problem occurs when trying to create a <code>StackPane</code> object.</p>
  
  <p>Here's the code so far:</p>
  
  <pre><code>package javaFX;
  
  import javafx.application.Application;
  import javafx.event.ActionEvent;
  import javafx.event.EventHandler;
  import javafx.scene.control.Button;
  import javafx.stage.Stage;
  
  public class HelloWorld extends Application {
  
  @Override
  public void start(Stage primaryStage) throws Exception {
  
      Button btn = new Button();
      btn.setText("Hello world!");
      btn.setOnAction(new EventHandler&lt;ActionEvent&gt;(){
  
          @Override
          public void handle(ActionEvent arg0) {
              System.out.println("Hello world!");
          }
  
      });
  
      StackPane root = new StackPane();
  
  }
  }
  </code></pre>
  
  <p>Tl;dr: Some JavaFX classes seem to be missing in Java SE 8u25 or I made a mistake in including the jre in the build path.</p>