Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
解决方案:https://stackoverflow.com/questions/662421/no-x11-display-variable-what-does-it-mean/662429#662429
export DISPLAY=:0.0
Exception in thread “main” java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
apt install x11-xserver-utils