LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-02-2013, 09:53 AM   #1
threezerous
Member
 
Registered: Jul 2009
Posts: 94

Rep: Reputation: 15
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.

java.awt.HeadlessException:
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
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
threezerous,

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
Code:
startx
or
Code:
startxwin
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....

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

Original Poster
Rep: Reputation: 15
Thumbs up

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


Reply


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: gnu.java.awt.peer.gtk.GtkToolkit artemis8543 Linux - Newbie 4 05-16-2006 08:38 PM


All times are GMT -5. The time now is 05:42 AM.

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