X-Spam-Check-By: sourceware.org From: "Charli Li" To: "Cygwin Mailing List" Subject: RE: Java program under cygwin? Date: Tue, 23 May 2006 16:05:57 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <61f6f4390605231240u462a35e9s8e31aeaf5e8c6b72@mail.gmail.com> X-AOL-IP: 70.20.134.33 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 In cygwin's setup.exe [ftp://ftp.osuosl.org/pub/cygwin/setup.exe], you have to install the X11 category, and then somehow execute "%CYGWINBASE%\usr\X11R6\bin\run.exe -p /usr/X11R6/bin startxwin.bat -display 127.0.0.1:0.0 -ls". This is the way to actually "start" the X-server. This requires the Internet access on cygwin to be fully accessible, or else that will abort the X-server startup. Once the X-server has started up, you can then run your java app. > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Jim Drash > Sent: Tuesday, May 23, 2006 3:40 PM > To: cygwin AT cygwin DOT com > Subject: Re: Java program under cygwin? > > > The GUI in linux (and in other Unixes) is provided via an X-Server. > An X-server provides a means for client programs (the Java app in > question) to "draw" on the display. I use the CygWin/X server all the > time to do just what you are wanting to do. Look at the second link > down on the cygwin home page ( http://www.cygwin.com/ ). > > > > On 5/23/06, Peter Mueller wrote: > > Hello Dave, hello Jim! > > > > > It looks like no X11 DISPLAY variable was set, but this > > > program > > > performed an operation which requires it. This is probably a > consequence > > > of > > > the fact that you're trying to run a GUI in a text-only environment. > > > > OK, then I guess I got something wrong: > > > > I thought cygwin would help me run programs under Linux from a > windows machine ...? > > > > When running the same Java programme directly under the same > Linux machine the program is working as expected. > > > > > > Jim Drash wrote: > > > Are you running an X-server on your local box? That is what the > > > message is saying. It needs to talk to an X-server. > > > > Sorry, I am a complete newbie to all this! :-( > > What is an X-Server? > > > > Thanks again, > > Peter > > > > -- > > > > > > Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! > > Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer > > > > > > -- > 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/ > -- 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/