Added Java headless option to the .sh script: -Djava.awt.headless=true