在JVM中加入-Djava.awt.headless=true
对于tomcat ,可以修改catalina.sh,加入:CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true "
相关文章
- 23. Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable.解决办法
- Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
- Nativecat连接linux服务器的mysql数据库问题解析(2003-Can’t connect to mysql server on ‘localhost‘(10038))
- 如何解决远程连接mysql出现Can’t connect to MySQL server on (111 “Connection refused”)的问题
- oracle Can't connect to X11 window server using ':0.0' /Checking monitor: must be configured to display at least 256 colors解决方法
- Linux 下centos7启动 Tomcat 抛出Can't connect to X11 window server 问题的解决方法
- MySQL遇到的问题-1-ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld
- 关于Mysql Can't connect to mysql server on localhost(10061)的问题解决
- 【java异常】org.springframework.web.util.NestedServletException: Handler processing failed;Can't connect to X11 window server using 'localhost:10.0' as the value of th
- Linux上 Can't connect to X11 window server using XX as the value of the DISPLAY 错误解决方法