Java Image Processing in Linux

Source: Internet
Author: User
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 "\

-Djava. io. tmpdir = "$ CATALINA_TMPDIR "\

-Djava. awt. headless = true \
Org. apache. catalina. startup. Bootstrap "$ @" start \

Add the red part.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.