super

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable

jasper安装在windows环境运行正常,但是在linux环境中出现错误:java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
解决方式:
在JVM中加入-Djava.awt.headless=true
对于tomcat ,可以修改catalina.sh,加入:CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true "

posted on 2006-01-05 09:28 王卫华 阅读(8061) 评论(1)  编辑  收藏 所属分类: jasperReport

Feedback

# re: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable 2008-03-26 13:48 jst2548

Can't connect to X11 window server using  回复  更多评论   



只有注册用户登录后才能发表评论。


网站导航: