I last tried to do this a year ago on a Raspberry Pi 4B (4GB) running Ubuntu 21.04 64 bit.
The critical factor was obtaining a JVM with Javafx for this platform (Oracle dropped support for this after 8U6).
I tried various different JVMs, Bellsoft looked the most promising.?
I could run up Gateway, login to my paper account.? But was unable to get the settings dialog to appear (to configure ports etc).? The logs showed numerous UI errors, so Gateway was not happy.
Having spent too many hours on this I decided I had more pressing tasks and put the whole project on ice.
Doubtless a more determined effort could yield success.
Andy