Introduction: Compiling and Running a JavaFX Application on Command Line Using JDK
JavaFX is a software platform from Oracle for creating and delivering desktop GUI applications that can run across a wide variety of devices and operating systems.
Here we will be building javaFX application using JDK on command line without using any IDE like intellij ,Netbeans or Eclipse.
Step 1: Online Video Tutorial
The tutorial for compiling java fx applications using command line tools is available in Video Format too.
Step 2: Compiling the Java Fx Libraries Using Command Line
To Compile a simple javafx application you have to use the following command
javac --module-path "Path to your javafx lib folder" --add-modules javafx.controls,javafx.fxml YourFile.java
Step 3: Running JavaFX App Using Command Line Tools
To Run the compiled javafx application class you have to use the following command.
java --module-path "Path to your javafx lib folder" --add-modules javafx.controls,javafx.fxml YourFile