I recently had a problem where I loaded ScreenConnect for remote access to a RHEL server. I imagine this is similar for other distros, Centos, Rocky. It has happened on Oracle Linux.
First thing you need is Java. The stupid thing is, it will install without it. But it won't work.
sudo yum install java-1.8.0-openjdk
Then you'll need to disable Wayland-
sudo nano /etc/gdm/custom.conf
Start or Restart the 'Connectwisexxx"