JDK-8210678 : Release Note: JavaFX crashes with OpenJDK 11 on Ubuntu 18.04 with Wayland
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: openjfx11
  • Priority: P2
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2018-09-12
  • Updated: 2018-10-01
  • Resolved: 2018-09-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx11Resolved
Description
JavaFX crashes on Ubuntu 18.04 Linux machines when the XWayland window server is enabled. This happens whenever the FX window toolkit code uses GTK 3 on Linux, which is the default as of JavaFX 11.

The recommended workaround is to use the Xorg server instead of the Wayland server when running JavaFX applications. Note that Wayland is not supported by JDK 10 or JDK 11.

An alternative workaround is to explicitly force GTK 2 by passing the following system property on the command line:

```
    java -Djdk.gtk.version=2 ...
```