Will Ubuntu OpenJDK 9 include OpenJFX 9?

Asked by John Neffenger on 2017-10-05

Will the version of OpenJDK 9 in Ubuntu 17.10 eventually include the JavaFX support found in the upstream release?

In the command output shown below, "HelloWorld.jar" is the simple "Hello World" JavaFX application created by NetBeans when you create a new JavaFX Application project.

Upstream Release (JavaFX support included)

JDK 9 General-Availability Release

$ ~/opt/jdk-9/bin/java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

$ ~/opt/jdk-9/bin/java -jar HelloWorld.jar
Hello World!
Hello World!

Ubuntu Release (no support for JavaFX)

Package: openjdk-9-jre (9~b181-4) [universe]

$ /usr/lib/jvm/java-9-openjdk-amd64/bin/java -version
openjdk version "9-Ubuntu"
OpenJDK Runtime Environment (build 9-Ubuntu+0-9b181-4)
OpenJDK 64-Bit Server VM (build 9-Ubuntu+0-9b181-4, mixed mode)

$ /usr/lib/jvm/java-9-openjdk-amd64/bin/java -jar HelloWorld.jar
Error: Could not find or load main class helloworld.HelloWorld
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

Question information

English Edit question
Ubuntu openjdk-9 Edit question
No assignee Edit question
Last query:
Last reply:

I suggest you report a bug. Artful is not ready yet so it may be added

Can you help with this problem?

Provide an answer of your own, or ask John Neffenger for more information if necessary.

To post a message you must log in.