64位linux报错 验证码无法显示Could not initialize class java.awt.image.BufferedImage
2021-05-12 08:29
标签:lin stop 验证 initial bin bootstra path could end Could not initialize class java.awt.image.BufferedImage 只需在TOMCAT启动参数中加"-Djava.awt.headless=true \" if [ ! -z "$CATALINA_PID" ]; then elif [ "$1" = "stop" ] ; then 64位linux报错 验证码无法显示Could not initialize class java.awt.image.BufferedImage 标签:lin stop 验证 initial bin bootstra path could end 原文地址:https://www.cnblogs.com/liabin/p/13140719.html
启动文件是:\bin\catalina.sh
加入的上下文 是
else
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
-Djava.awt.headless=true \*********加入这一行**************
org.apache.catalina.startup.Bootstrap "$@" start \
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
echo $! > $CATALINA_PID
fi
fi
加的时候注意位置(stop是关键的位置标志)
上一篇:python之函数基础
文章标题:64位linux报错 验证码无法显示Could not initialize class java.awt.image.BufferedImage
文章链接:http://soscw.com/essay/84607.html