Java:提示Could not initialize class sun.awt.X11GraphicsEnvironment
程序员文章站
2022-07-14 23:00:36
...
https://www.cnblogs.com/hwaggLee/p/5454463.html 原博客地址
报错信息
解决方法
1. 方案1 在tomcat bin\catalina.sh下 添加
-Djava.awt.headless=true \
原:
改:
2.方案2 在tomcat bin\catalina.sh下 添加
“CATALINA_OPTS=-Djava.awt.headless=true
上一篇: java.lang.NoClassDefoundError:Could not initialize class sun.awt.X11GraphicsEnvironment异常
下一篇: @@tx_isolation is deprecated and will be removed in a future release.Please use '@@transacti :bug修复
推荐阅读
-
【⭐】Java—Spring-—数据库操作—使用内置连接池,报读取不到驱动错误。Could not load JDBC driver class。
-
【J2SE】java.lang.NoClassDefFoundError: Could not initialize class xxx 原因
-
java.lang.NoClassDefoundError:Could not initialize class sun.awt.X11GraphicsEnvironment异常
-
Java:提示Could not initialize class sun.awt.X11GraphicsEnvironment
-
java导出excel:Could not initialize class sun.awt.X11GraphicsEnvironment
-
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
-
java.lang.NoClassDefFoundError:could not initial class xxxxxxxxx
-
java.lang.NoClassDefFoundError:could not initial class xxxxxxxxx
-
Jeecg部署服务器图片不显示,报java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvir
-
【⭐】Java—Spring-—数据库操作—使用内置连接池,报读取不到驱动错误。Could not load JDBC driver class。