B4J Question B4J GUI app under Linux: error com.sun.javafx.scene.control.skin

peacemaker

Expert
Licensed User
Longtime User
Hi, All

1) Strange that if to start app under Linux via B4J-Bridge - no this error, but if to start app directly at Linux host - always this error:


Arguments at compilation are:
B4X:
#VirtualMachineArgs: -Djdk.gtk.version=2 --add-opens javafx.controls/com.sun.javafx.scene.control.skin=ALL-UNNAMED
Starting at JDK14.

2) Despite of -Djdk.gtk.version=2 - warning about GDK is here anyway:
Gdk-WARNING **: 17:42:10.209: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.
(if to try to use JDK23 - GDK warning is turning out into the GDK-CRITICAL error, as GDK2 was removed from JavaFX).


Any ideas about fatal error with "com.sun.javafx.scene.control.skin" ?
 
Last edited:

peacemaker

Expert
Licensed User
Longtime User
Upvote 1
Solution