I misunderstood what I originally downloaded from the JDK 9 General- Availability Release page (http://jdk.java.net/9/). When Java 9 was first released, that page had a link to the Oracle JDK, not to the OpenJDK. Now that Oracle has released a 9.0.1 update, the OpenJDK is different from the JDK from Oracle and is in fact missing the JavaFX support.
So the upstream OpenJDK does not contain JavaFX support after all. It appears from the mailing list that JavaFX will be included in some later release. Oracle JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html $ ~/opt/jdk-9.0.1/bin/java -version java version "9.0.1" Java(TM) SE Runtime Environment (build 9.0.1+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode) $ ~/opt/jdk-9.0.1/bin/java -jar HelloWorld.jar Hello World! Hello World! Upstream OpenJDK http://jdk.java.net/9/ $ ~/opt/openjdk-9.0.1/bin/java -version openjdk version "9.0.1" OpenJDK Runtime Environment (build 9.0.1+11) OpenJDK 64-Bit Server VM (build 9.0.1+11, mixed mode) $ ~/opt/openjdk-9.0.1/bin/java -jar HelloWorld.jar Error: Could not find or load main class helloworld.HelloWorld Caused by: java.lang.NoClassDefFoundError: javafx/application/Application -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1721852 Title: JavaFX support is in upstream OpenJDK 9 but missing in Ubuntu OpenJDK 9 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1721852/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
