Will Ubuntu OpenJDK 9 include OpenJFX 9?

Asked by John Neffenger

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:
Solved
For:
Ubuntu openjdk-9 Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

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

Revision history for this message
John Neffenger (jgneff) said :
#2

Thanks actionparsnip, that solved my question.