Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit

作者:じ☆ve宝贝

发布时间:2018-02-24T15:07:32

解决方案:

在Tomcat/bin/catalina.sh 中增加-Djava.awt.headless=true

JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"