X-Spam-Check-By: sourceware.org Date: Tue, 3 Apr 2007 12:56:51 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: "Elliston, Jack W CTR USA TRADOC NSC" 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: References: <9735AA8FA77D4246B586FEA2554869D019853F AT leav101beexs001 DOT nanw DOT ds DOT army DOT mil> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/