LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No X11 display variable was set (https://www.linuxquestions.org/questions/linux-newbie-8/no-x11-display-variable-was-set-684843/)

enigmat.shah 11-20-2008 05:44 AM

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."

TB0ne 11-20-2008 08:50 AM

Quote:

Originally Posted by enigmat.shah (Post 3348509)
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.

enigmat.shah 11-20-2008 11:19 PM

So, how do I proceed.

TB0ne 11-21-2008 08:22 AM

Quote:

Originally Posted by enigmat.shah (Post 3349470)
So, how do I proceed.

Fix your program...you wrote it.

swampf0x 01-20-2012 02:42 PM

Wow! Outstanding help.

TB0ne 01-20-2012 07:51 PM

Quote:

Originally Posted by swampf0x (Post 4580100)
Wow! Outstanding help.

Well, it's nothing like the contribution you've made to this closed, four-year-old thread.

swampf0x 02-02-2012 10:37 AM

Oh, you flatter me, i never meant to contribute anything only a cursory observation of some 1st rate technical advise.
010011000100111101001100

Mara 02-02-2012 02:25 PM

Moderator note: personal attacks are not needed, really.

anjain 04-11-2012 05:40 AM

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.

anjain 04-11-2012 05:42 AM

i can post my code if that helps...


All times are GMT -5. The time now is 08:37 AM.