jasper安裝在windows環(huán)境運行正常,但是在linux環(huán)境中出現(xiàn)錯誤: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 "