java.awt.HeadlessException No X11 DISPLAY jfreechart bufferimage

java.awt.HeadlessException
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
转自: http://www.iteye.com/topic/386716

在linux环境下需要配置x windons
执行以下命令:
1)   startx &
2)   export DISPLAY=:0.0
3)   重起tomcat

注意:,-Djava.awt.headless=true这个参数就不能加在java启动项里

备注: x window 如何安装还在研究中

你可能感兴趣的:(java,tomcat,linux,jfreechart,ITeye)