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 "