Command line “Hello World!” in JavaFX
Download JavaFX SDK. Install it, and have its bin folder in your PATH.
Open your favorite text editor, and write:
println("Hello World!");
java.lang.System.exit(0);
Save the file as A.fx. To compile the code:
$ javafxc A.fx
This will generate the class file A.class. To run the application:
$ javafx A
Isn’t it simple?