Plus parameters "-djava.awt.headless = true"

xiaoxiao2021-03-05  53

I have encountered it before, I have forgotten it today, and I will mark again:

Under Linux, if you throw an Exception in Thread "Main" java.lang.internalerror: can't connect to x11 window server usding ': 0.0' as the value of the display variable. Solution is to run time plus -Djava.aw .HEADLESS = TRUE

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

New Post(0)