X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: Java program under cygwin? Date: Tue, 23 May 2006 15:02:49 +0100 Message-ID: <042501c67e71$935bd0b0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20060523134838.19260@gmx.net> 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 On 23 May 2006 14:49, Peter Mueller wrote: > Hello, > > I am trying to run a Java program which has a GUI associated with it and > whose code is on a remote linux server. > > I am first establishing an ssh connection with an appended "-X" and then > run the java program using the path to the Java programm's sh_start_file. > > Unfortunatelly, I am getting the following error message: > > java.awt.HeadlessException: > No X11 DISPLAY variable was set, but this program performed an operation > which requires it. at java.awt.GraphicsEnvironment.checkHeadless ... > cut ... > > > Do you have any idea of what could be wrong? Well, yes. 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. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/