← Back to team overview

openjdk team mailing list archive

[Bug 1721852] Re: JavaFX support is in Oracle JDK 9 but missing in Ubuntu OpenJDK 9

 

It seems that OpenJFX should continue to be packaged separately, just
like any other Java library.

JavaFX was included in Oracle JDK 8 but will be removed in JDK 11, the
next long-term support (LTS) release of the JDK. See the following pages
for updates on the status of JavaFX in the Oracle JDK:

Oracle Java SE Support Roadmap
http://www.oracle.com/technetwork/java/eol-135779.html

The Future of JavaFX and Other Java Client Roadmap Updates
https://blogs.oracle.com/java-platform-group/the-future-of-javafx-and-other-java-client-roadmap-updates

The associated white paper has more details:

Java Client Roadmap Update
http://www.oracle.com/technetwork/java/javase/javaclientroadmapupdate2018mar-4414431.pdf

The white paper includes the following items in its Executive Summary:

• JavaFX new fixes will continue to be supported on Java SE 8 through
March 2022 and removed from Java SE 11.

• Swing and AWT will continue to be supported on Java SE 8 through at
least March 2025, and on Java SE 11 (18.9 LTS) through at least
September 2026.

• Oracle has begun conversations with interested parties in the Java
ecosystem on the stewardship of JavaFX, Swing and AWT beyond the above
referenced timeframes.

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-9 in Ubuntu.
https://bugs.launchpad.net/bugs/1721852

Title:
  JavaFX support is in Oracle JDK 9 but missing in Ubuntu OpenJDK 9

Status in openjdk-9 package in Ubuntu:
  Confirmed
Status in openjfx package in Ubuntu:
  Confirmed

Bug description:
  OpenJDK 9 in Ubuntu 17.10 is missing the JavaFX support found in the
  upstream release. In the command output below, the file
  "HelloWorld.jar" is the simple "Hello World" JavaFX application
  created automatically 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 (missing 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1721852/+subscriptions


References