aspose file tools*
The moose likes Java in General and the fly likes Run a gui from unix box on my pc. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Run a gui from unix box on my pc." Watch "Run a gui from unix box on my pc." New topic
Author

Run a gui from unix box on my pc.

mike weister
Greenhorn

Joined: Sep 14, 2010
Posts: 4
I am trying to figure out how to bring up a gui (you know, jframe, jpanels) on my pc, but with with code on a unix box.
I think I need to set the DISPLAY variable on unix to my pc ip. Is there anything else?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Not sure--are Unix Java programs automagically X-aware?
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You need to have an x-server running, which you then refer to with the DISPLAY setting.


Regards, Rene Larsen
Dropbox Invite
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Like this one: http://www.straightrunning.com/XmingNotes/
mike weister
Greenhorn

Joined: Sep 14, 2010
Posts: 4
thanks guys , so I will d/l that xserver on the pc, then set DISPLAY var on the unix box to <PC IP ADDRESS>:0 , does that sound correct?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38896
    
  23
And welcome to the Ranch
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

When you have started an X-Server on your Windows box, you can from a windows command prompt connect to your Unix box with telnet or ssh - when connected via the command prompt, set DISPLAY to your windows host/IP-adr., so that your Unix box know where - and which - X-server to use.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Run a gui from unix box on my pc.