在JVM中加入-Djava.awt.headless=true
对于tomcat ,可以修改catalina.sh,加入:CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true "
相关文章
- 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 错误解决方法
- Linux启动应用(比如jmeter)报An error occurred: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
- Java在Linux下 不能处理图形的解决办法 Can't connect to X11 window server
- 【linux错误解决】MySQL远程连接ERROR 2003 (HY000):Can't connect to MySQL server on'XXXXX'的问题
- Can't connect to X11 window server using 的问题,求解
- rails出现Can't connect to MySQL server on 'localhost' (10061)问题的解决方法