Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-02-2013, 09:53 AM   #1
Registered: Jul 2009
Posts: 96

Rep: Reputation: 16
Question cygwin issue - java.awt.HeadlessException:No X11 DISPLAY variable was set, but ....

I just installed cygwin X11 on my laptop (for the first time). When I run a java program - a jar file - I get the error below. The same program works fine when I run vncserver on the linux host and I connect through vncviewer. I also confirmed that xinit packages are installed as part of cygwin packages. Not sure what is causing this error.

No X11 DISPLAY variable was set, but this program performed an operation which requires it.

Thanks much for your time
Old 10-02-2013, 11:36 AM   #2
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98

If I am not mistaken.... once you start the Cygwin bash shell, you have to invoke an X-terminal in order to run X applications. I think there are a couple of different commands, based on how you installed it. Try
and you should see a lot of text on the screen followed by a WHITE terminal window opening up. Kick off your X application from the WHITE terminal....

1 members found this post helpful.
Old 10-06-2013, 05:38 AM   #3
Registered: Jul 2009
Posts: 96

Original Poster
Rep: Reputation: 16
Thumbs up

Yep.....that was the issue. I guess i missed the core step. Thanks much for your time.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No X11 display variable was set enigmat.shah Linux - Newbie 9 04-11-2012 05:42 AM
Java | Ubuntu 8.04 | java.awt.HeadlessException akuma_linux Linux - Newbie 3 01-06-2009 10:27 AM
java.awt.AWTError: Cannot load AWT toolkit: artemis8543 Linux - Newbie 4 05-16-2006 08:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration