delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/03/12:57:13

X-Spam-Check-By: sourceware.org
Date: Tue, 3 Apr 2007 12:56:51 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Elliston, Jack W CTR USA TRADOC NSC" <Jack DOT Elliston AT us DOT army DOT mil>
cc: cygwin AT cygwin DOT com
Subject: Re: 1.5.24 remote launch of java gui
In-Reply-To: <9735AA8FA77D4246B586FEA2554869D019853F@leav101beexs001.nanw.ds.army.mil>
Message-ID: <Pine.GSO.4.63.0704031255410.19105@access1.cims.nyu.edu>
References: <9735AA8FA77D4246B586FEA2554869D019853F AT leav101beexs001 DOT nanw DOT ds DOT army DOT mil>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, 3 Apr 2007, Elliston, Jack W  CTR USA TRADOC NSC wrote:

> I am unable to launch a java application via ssh such that it displays
> the gui on the remote machine.
>
> Setup:
>
> Machine 1 (Linux)    --ssh-->     Machine 2 (WinXP w/ Cygwin 1.5.24)
>
> Example:
> At the prompt I type "java -jar Notepad.jar" in the correct directory
> expecting to see the java Notepad display on Machine 2
>
>  => I see a java process but no gui.
>
> I see a similar problem with the main app I am trying to run.  My
> application will run just fine on Machine 2 and I am able to interact
> with the process (but not the GUI) and I need the GUI for some
> monitoring.
>
> Even if I set the DISPLAY=localhost:0 it will not display.
>
> I don't want the GUI to show up on Machine 1 since the underlying
> purpose is to launch a java application on multiple cygwin machines
> using a looped 'ssh -f machinex "java app"' script with the gui
> displaying on each remote machine.  This approach works great on linux
> boxes but I cannot get a java gui to display on the cygwin machines.
>
> I can remotely launch xterms since I do have an Xserver running on the
> cygwin box.
>
> Any help or pointers to better information would be greatly appreciated.

There is no Cygwin version of Java.  Therefore, you're starting a Windows
version of Java, which is not an X application.  You will not be able to
forward the display, unless you use something like rdesktop or VNC.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019