JSP image processing X11 error solution

xiaoxiao2021-03-06  72

When there is no XWindows on the Linux server, the image will be reported.

Java.lang.InternalError: Can't Connect to X11 Window Server Using ': 0.0' as the value of the display variable.

This is wrong.

Solution:

In the Catalina.sh file of Tomcat

turn up

# ----- EXECUTE The Requested Command ------------------------------------------------------------------------------------------------------------------------------ -

Echo "Using Catalina_Base: $ CATALINA_BASE"

Echo "Using Catalina_Home: $ CATALINA_HOME"

Echo "Using Catalina_TMPDir: $ Catalina_TMPDIR"

Echo "Using Java_Home: $ java_home"

Join

Java_opts = "- Djava.awt.Headless = True"

You can solve the problem.

转载请注明原文地址:https://www.9cbs.com/read-93202.html

New Post(0)