Connecting Tech Pros Worldwide Help | Site Map

Running Java Swing Program in Linux through Telnet

Newbie
 
Join Date: Nov 2008
Posts: 3
#1: Nov 4 '08
We have RHEL5 server. We could able to run Java programs through telnet

But When we run Java Swing (GUI) we are getting GTK error

Please help us to eliminate this error.
Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#2: Nov 4 '08

re: Running Java Swing Program in Linux through Telnet


Hi!
I'm guessing, you've not chosen to forward the X-Servers output. Therefore GTK doens't know where to display to.
I'm not quite sure how to do that with telnet, but with ssh it would be
Expand|Select|Wrap|Line Numbers
  1. ssh -X address-of-the-server
I'd recommend using ssh anyway, as it's much safer than telnet.

Greetings,
Nepomuk
Newbie
 
Join Date: Nov 2008
Posts: 3
#3: Nov 7 '08

re: Running Java Swing Program in Linux through Telnet


I am familiar with telnet but not with ssh.

could you please tell me how do run ssh from xp ( as c:\telnet for telnet)









Quote:

Originally Posted by Nepomuk

Hi!
I'm guessing, you've not chosen to forward the X-Servers output. Therefore GTK doens't know where to display to.
I'm not quite sure how to do that with telnet, but with ssh it would be

Expand|Select|Wrap|Line Numbers
  1. ssh -X address-of-the-server
I'd recommend using ssh anyway, as it's much safer than telnet.

Greetings,
Nepomuk

Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#4: Nov 10 '08

re: Running Java Swing Program in Linux through Telnet


Quote:

Originally Posted by bytespaulraj

I am familiar with telnet but not with ssh.

could you please tell me how do run ssh from xp ( as c:\telnet for telnet)

Sure! Try using PuTTY - there's documentation available on that site too.

As far as I know, there is little difference between how you use telnet and how you use ssh, although PuTTY offers a GUI for configuration (but I think you can use it with just the command line too).

If you have any specific questions, you can't solve with the documentation, don't hesitate to ask here. :-)

Greetings,
Nepomuk
Reply