Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I have tried to execute a jar file from the command line, and I got the follwing error: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    32

    Post Setting X11 DISPLAY variable


    Hello,

    I have tried to execute a jar file from the command line, and I got the follwing error:

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

    Where should I set the variable (or what could be done)? Thank you.

  2. #2
    Just Joined! quanta2010's Avatar
    Join Date
    Aug 2007
    Posts
    14
    Try:
    Code:
    export DISPLAY=:0.0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •