SyntaxFix
Write A Post
Hire A Developer
Questions
First do this either in Build Phase of Jenkins if using or set in /etc/profile:
unset DISPLAY export DISPLAY=:0
then set this property either in java code or using maven: -Djava.awt.headless=false