Linux系统下Jsp验证码显示不出来解决方法
错误提示:Could not initialize class sun.awt.X11GraphicsEnvironment 错误原因:tomcat没有加载java.awt.headless,修改tomcat下的/bin/catalina.sh文件:
找到-Djava.io.tmpdir="$CATALINA_TMPDIR",在这一行的下面加入: -Djava.awt.headless=true \
需要修改六处,改完重启tomcat。
Copyright @ Jakin.zhou Powered by: .Text and ASP.NET Theme by: .NET Monster