// Save as TestFX.java import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.stage.Stage; public class TestFX extends Application public void start(Stage stage) stage.setScene(new Scene(new Label("JavaFX 8 OK"))); stage.show();
Compile and run:
public static void main(String[] args) launch(); javafx 8 download
java -version Then compile/run a simple JavaFX app or test with: // Save as TestFX
Example using Maven (pom.xml snippet):