How to display graphic verification code in Linux Environment

xiaoxiao2021-04-05  253

I found that many people asked this question, I am also the answer from the Internet. Share here and share:

Add -Djava.awt.headless = true in the Java boot parameters. Take Tomcat as an example, it is to find Catalina.sh in the bin directory of Tomcat. When you open, you can see a lot of -D, you are starting the parameters. Plus -Djava.awt.Headless = true is available in all branches. Below is an example of a Catalina.sh:

-Djava.endorsed.dirs = "$ java_endorsed_dirs" -classpath "$ classpath" /

-SourcePath "$ Catalina_Home" /../../ jakarta-tomcat-catalina / catalina / src / share /

-Djava.security.manager /

-Djava.security.policy == "$ catalina_base" /conf/catalina.policy /

-Dcatalina.base = "$ CATALINA_BASE" /

-Dcatalina.home = "$ CATALINA_HOME" /

-Djava.awt.Headless = True /

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

Org.apache.catalina.Startup.bootstrap "$ @" start

What you need to do is joining the row.

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

New Post(0)