I use some AWT code in my Java app which ran fine until I unit tested it on Linux Mint Debian Edition via Jenkins and Gradle: I now get that nasty java.awt.HeadlessException
which is explained here .
The unsuccessful unit test causes my build to fail; how do I fix that?
These are the steps that rid me of the HeadlessException:
sudo apt-get update && sudo apt-get install vnc4server
sudo usermod -s /bin/bash jenkins
sudo su jenkins
vnc4server
and choose a password Run Xvnc during build
in Jenkins' build config
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.