8215364: JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop

Reviewed-by: prr, kcr
This commit is contained in:
Pankaj Bansal 2018-12-21 11:43:04 +05:30
parent cad5fa8f16
commit e049d143b0

View File

@ -150,6 +150,10 @@ JNIEXPORT jint JNICALL
DEF_JNI_OnLoad(JavaVM *vm, void *reserved)
{
jvm = vm;
//Set the gtk backend to x11 on all the systems
putenv("GDK_BACKEND=x11");
return JNI_VERSION_1_2;
}