--- old/src/solaris/native/sun/xawt/XToolkit.c	2019-02-22 02:28:59.870094299 +0000
+++ new/src/solaris/native/sun/xawt/XToolkit.c	2019-02-22 02:28:59.700093212 +0000
@@ -154,6 +154,10 @@
 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;
 }