SDK Setup, Maven/Gradle, Project Structure and the Application Class
Learn SDK Setup, Maven/Gradle, Project Structure and the Application Class (Phase 1 · JavaFX Fundamentals (Core), JavaFX) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Setting up JavaFX • Install a JDK (21 LTS) and add JavaFX as dependencies (recommended: Maven/Gradle downloads the platform-specific modules) or install the JavaFX SDK from openjfx.io and pass --module-path /path/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml when running. Typical IDE issue: "JavaFX runtime components are missing" means the module path/--add-modules is missing or your main class extends Application in a non-modular launch: use a separate Launcher class with main for fat jars.