0

No X11 DISPLAY variable was set

asked 2014-09-12 14:51:47 +0800

kenshin gravatar image kenshin
18 1

Hi,

I have an problem in zk's application when export data to pdf format; the message error is follow:

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

The application's server is tomcat 7 and running on linux ubuntu 12.04.

Thanks from Colombia.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-09-13 14:33:35 +0800

Darksu gravatar image Darksu
1991 1 4

Hello kenshin,

This has to do when a web application that does something related to graphics and you're running it on a server that isn't running a windowing system.

You need to somehow set System.setProperty("java.awt.headless", "true");

Tell the server team to start whatever Java they are starting with an additional command line parameter:

java -Djava.awt.headless=true

You could additionaly set the following system propery if X11 is installed

DISPLAY=:0.0 export DISPLAY

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-09-12 14:51:47 +0800

Seen: 8 times

Last updated: Sep 13 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More