Support for GTK 2 & 3 now in JFX

Erik De Rijcke derijcke.erik at
Mon May 16 12:15:37 UTC 2016

I ran into several issues, however I'm not sure they are related to gtk3

first of all it seems there is a dependency on: gsettings-desktop-schemas.
I'm not sure how desirable this is (I did not have it installed, installing
it fixed the error but I can image people not wanting to install it?)

Second, and this seems unrelated to gtk(3?), the screen initialization
fails (test was done using gentoo linux on virtualbox with windows 7 as

Exception in thread "JavaFX Application Thread"
java.lang.IllegalArgumentException: Both width and height must be >= 0

at javafx.geometry.Rectangle2D.<init>(
at javafx.stage.Screen.nativeToScreen(
at javafx.stage.Screen.updateConfiguration(
at javafx.stage.Screen.checkDirty(
at javafx.stage.Screen.getPrimary(
at Method)

Nearly all values seem to be -2147483648

I used openjdk9 109 as per instructions of the wiki, and the latest javafx

On Mon, May 9, 2016 at 8:56 PM, Jim Graham <james.graham at> wrote:

> Should we integrate that into prism.verbose output?
>                         ...jim
> On 5/9/16 6:18 AM, David Hill wrote:
>> I added a new feature Friday and would like some help testing it.
>> This new feature (8087516: Conditional support for GTK 3 on Linux) allows
>> us to use either GTK v2 or 3 with JavaFX.
>> The default has not changed - we will use gtk 2 by preference.
>> The help I need is for anyone doing testing on Linux with the current
>> tree - like todays sanity testing. Adding
>> -Djdk.gtk.verbose=true
>> should output the version detected and used. I would appreciate a paste
>> of that along with the OS version.
>> -Djdk.gtk.version=3
>> toggles the preferred version to GTK 3. Testing using that toggled would
>> also be appreciated, along with a note to me
>> with the OS version.
>> thanks!

More information about the openjfx-dev mailing list