64位linux报错 验证码无法显示Could not initialize class java.awt.image.BufferedImage

2021-05-12 08:29

阅读:755

标签:lin   stop   验证   initial   bin   bootstra   path   could   end   

Could not initialize class java.awt.image.BufferedImage

 

 

只需在TOMCAT启动参数中加"-Djava.awt.headless=true \"
启动文件是:\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 &

      if [ ! -z "$CATALINA_PID" ]; then
        echo $! > $CATALINA_PID
      fi
  fi

elif [ "$1" = "stop" ] ; then
加的时候注意位置(stop是关键的位置标志)

 

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


评论


亲,登录后才可以留言!