Results 1 to 4 of 4

Thread: No X11 DISPLAY variable was set

  1. #1
    Join Date
    Jul 2009
    Posts
    58

    No X11 DISPLAY variable was set

    I have some java packages, which i use to run in j2ee and apache when on windows. I tried to use this software on my linux box and i got this weird error :
    java.awt.HeadlessException:No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    What is wrong? How do i set display variable? Any help?

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Re: No X11 DISPLAY variable was set

    If you are on the main windows you could try this :
    Code:
    export DISPLAY=:0.0
    and if you are using csh or tcsh try this :
    Code:
    setenv DISPLAY :0.0
    Hope this helps!

  3. #3
    Join Date
    Apr 2008
    Posts
    3,267

    Re: No X11 DISPLAY variable was set

    You can try this too. Try to start your server with the following command :
    Code:
    -Djava.awt.headless=true

  4. #4
    Join Date
    May 2008
    Posts
    4,085

    Re: No X11 DISPLAY variable was set

    Try this too, If you are on a shell like ksh, bash use this :
    Code:
    export DISPLAY=:0
    and if you are on any shell based on c like chs, tcsh use this :
    Code:
    setenv DISPLAY :0

Similar Threads

  1. What is a Variable and Constant in C# ?
    By NIcaBoy in forum Software Development
    Replies: 4
    Last Post: 09-02-2010, 05:49 AM
  2. Replies: 2
    Last Post: 28-08-2009, 07:51 PM
  3. Replies: 3
    Last Post: 25-04-2009, 11:34 AM
  4. display "path" system variable in cmd.exe
    By John A Grandy in forum Windows Server Help
    Replies: 1
    Last Post: 12-12-2008, 12:26 PM
  5. Variable height in CSS
    By Sentential in forum Software Development
    Replies: 8
    Last Post: 22-10-2008, 02:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,266,713.79468 seconds with 16 queries