Java Image Processing in Linux-general Linux technology-Linux programming and kernel information. For more information, see the following section. When xwindows is not installed on a linux server, image processing reports
Java. lang. InternalError: Can't connect to X11 window server using ': 0.0' as the value of the DISPLAY variable.
This error occurs.
The reason is that windows Kernel integrates gui, but linux does not start x server
Solution:
1. Start x server
2. Add-Djava. awt. headless = true to the parameter during Tomcat startup, that is, bin/startup. sh-Djava. awt. headless = true
This method is purely Java drawing and does not require X Server support. If this method does not work, you need to modify bin/catalina. sh in-Dcatalina. home = "$ CATALINA_HOME "\
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.