Nexted exception is java.awt.HeadlessException

This is what I get when I start my SpringBoot application, built using Java Swing.

Exception encountered during context initialization. Constructor threw Exception java.awt.HeadlessException

Adding the headless JVM param would resolve this problem

-Djava.awt.headless=false

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top