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 王衛華 閱讀(8087) 評論(1) 編輯 收藏 所屬分類: jasperReport