Friday, 22 January 2021

Caused by: java.awt.HeadlessException

The error happens as Integrating SpringBoot application with JavaFX application; 

what does headless mean? 

Headless software (e.g. "headless Java" or "headless Linux",) is software capable of working on a device without a graphical user interface. ... 


solution: 

SpringApplicationBuilder builder = new SpringApplicationBuilder(DemoApplication.class);
builder.headless(false);
applicationContext = builder.run();

No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...