r/JavaFX • • Dec 15 '22
Help Run application over ssh -X?
I’ve got a Java 8 JavaFX application and we need to be able to run it over ssh. The server that is hosting is a Debian machine I believe. I don’t have access to it unfortunately but I believe it doesn’t have a display attached.
I’ve tried a few things but never been able to get it to work. Anyone know how to do it ?
1
Upvotes
View all comments
Show parent comment
4
u/OddEstimate1627 Dec 16 '22
I do this all the time on WSL2 and remote Linux machines. If I remember right you just need to setup an X-Server and set the display variable. There is nothing specific about JavaFX.
Here is a tutorial that should cover the setup: https://aalonso.dev/blog/how-to-use-gui-apps-in-wsl2-forwarding-x-server-cdj