Could not initialize class sun.awt.X11GraphicsEnvironment 在Tomcat/bin/catalina.sh 中增加-Djava.awt.headless=true vi catalina.sh 添加 JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"