indiWiz.com

Subhash's Tech Log

Command line “Hello World!” in JavaFX

without comments

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?

Written by Subhash Chandran

June 4th, 2009 at 6:33 am

Posted in Java

Tagged with

Leave a Reply