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
http://jdk.java.net/9/

$ ~/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]
https://packages.ubuntu.com/artful/openjdk-9-jre

$ /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

Language:
English Edit question
Status:
Answered
For:
Ubuntu openjdk-9 Edit question
Assignee:
No assignee Edit question
Last query:
2017-10-05
Last reply:
2017-10-06

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.