Launching JavaFX Apps with Java 8

Scott Palmer swpalmer at
Thu Jan 23 17:31:38 PST 2014

Since the Java 8 launcher now calls main(Strin []args]) if present, what is
the expected behaviour of this code?:

import javafx.application.Application;
import javafx.stage.Stage;

public class Main extends Application {

    public static void main(String [] args) {
        System.out.println("Hi mom!");

    public void start(Stage stage) throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");

For me it prints the "Hi mom!" message and hangs.   Since there is no
showing Stage, I would expect it to exit.   Shall I file a bug?


More information about the openjfx-dev mailing list