Embedding JavaFX in SWT on Linux (Gtk3)

Stephen F Northover steve.x.northover at oracle.com
Wed May 14 15:09:04 UTC 2014

Hi Tom,


There is no plan to move to gtk3 at this point.  If we move to gtk3, FX 
will no longer be compatible with AWT/Swing which uses GTK2.  The 
monocle port uses only X11 and this could be investigated, however, 
things like Drag and Drop are unlikely to work.

I'll add all this information including Webkit use of GTK to RT-35264.


On 2014-05-14 8:54 AM, Tom Schindl wrote:
> Hi,
> Starting with Eclipse Luna (released in end of June) the default mode of
> SWT on Linux is to make use of Gtk3.
> As far as I understand the situation Glass on Linux is linked against
> Gtk2 so JavaFX components that need glass (=fairly everything beside
> javafx-properties) will fail to load - in fact i got reports that the
> JVM crashes.
> IIRC i read that monocole has a port that directly uses X11 would it be
> a work-around to run with this port when running in swt-embedding?
> Am I right that the webkit binaries are also linked against gtk2 or do I
> remember this wrong?
> Tom

More information about the openjfx-dev mailing list