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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf > Of Jim Drash > Sent: Tuesday, May 23, 2006 3:40 PM > To: cygwin@cygwin.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 <[EMAIL PROTECTED]> 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/