LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-20-2008, 05:44 AM   #1
enigmat.shah
LQ Newbie
 
Registered: Sep 2008
Location: Pune, India
Posts: 2

Rep: Reputation: 0
Question No X11 display variable was set


Hi,

I am trying to execute a simple applet program in Java. I have compiled the .java file of the code successfully but, when I try to execute the .html using the command appletviewer sourcecode.html, I get the error,
"No X11 display variable was set, but this program performed an operation which requires it."

Last edited by enigmat.shah; 11-20-2008 at 05:48 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-20-2008, 08:50 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by enigmat.shah View Post
Hi,

I am trying to execute a simple applet program in Java. I have compiled the .java file of the code successfully but, when I try to execute the .html using the command appletviewer sourcecode.html, I get the error,
"No X11 display variable was set, but this program performed an operation which requires it."
Your program seems like it was written to be stand-alone, and pop up a GUI. When you try to run it, it's looking for an X server, so it can display the windows. Your browser doesn't know such things, so you get the error.
 
Old 11-20-2008, 11:19 PM   #3
enigmat.shah
LQ Newbie
 
Registered: Sep 2008
Location: Pune, India
Posts: 2

Original Poster
Rep: Reputation: 0
So, how do I proceed.
 
Old 11-21-2008, 08:22 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by enigmat.shah View Post
So, how do I proceed.
Fix your program...you wrote it.
 
Old 01-20-2012, 02:42 PM   #5
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Rep: Reputation: 3
Wow! Outstanding help.
 
Old 01-20-2012, 07:51 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by swampf0x View Post
Wow! Outstanding help.
Well, it's nothing like the contribution you've made to this closed, four-year-old thread.
 
Old 02-02-2012, 10:37 AM   #7
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Rep: Reputation: 3
Oh, you flatter me, i never meant to contribute anything only a cursory observation of some 1st rate technical advise.
010011000100111101001100
 
Old 02-02-2012, 02:25 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moderator note: personal attacks are not needed, really.
 
2 members found this post helpful.
Old 04-11-2012, 05:40 AM   #9
anjain
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
I know i am digging on to a very old question here.
However i am facing a similar kind of problem when i am trying to run the xuggler media container code using my servlet application.

Any idea where i can look for in my code and what type of thing should not be there in the code so that such error does not pops up.
 
Old 04-11-2012, 05:42 AM   #10
anjain
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
i can post my code if that helps...
 
  


Reply

Tags
display, error, set, variable, x11



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
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. defa0009 Linux - General 15 02-18-2022 08:09 AM
X11 over SSH: $DISPLAY not being set Dria Linux - Networking 4 10-25-2010 01:47 PM
How to set X11 DISPLAY variable for an operation in program? alan_ri *BSD 5 02-06-2008 09:23 AM
No X11 DISPLAY variable was set, but this program performed an operation which requir ernestkok Fedora 1 04-04-2007 07:10 PM
set DISPLAY variable W1pEout[64] Linux - Software 4 01-07-2004 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:13 PM.

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
Open Source Consulting | Domain Registration