How to run a Java GUI application on headless Linux that does not support a graphical interface?

I created a Java GUI application that runs on Windows. Now I want him to run it on a headless instance of Linux that does not support a graphical interface. I wanted to convert the GUI to TUI. Is there a way to replace some classes and run it on Linux using TUI. Please, help.

+5
source share
3 answers

You can use the PeterMmm suggestion http://www.pitman.co.za/projects/charva/index.html

Or you can run the graphical interface on the local computer by starting the X server and then connecting to the Linux box using ssh -X. This will show a graphical interface on your local computer, but the program actually works in the linux window.

Or you can run XVFB to fake the GUI in a Linux box. You may not be able to see the graphical interface or interact with it in any way, but this may not matter to you.

+4
source

There are several ncurses Java implementations available like this: http://www.pitman.co.za/projects/charva/index.html

+1
source

, Linux, ssh ​​config (~/.ssh/config):

Compression yes
CompressionLevel 9
ForwardX11 yes
ForwardX11Trusted yes

, Linux, . , ... AWT .

Windows, intall CygWin Xserver. OpenSSH. CygWin ssh, , . , Xserver . Putty , XX .

xauth + sshd X11Forwarding . OK echo $DISPLAY localhost:10.

0
source

All Articles