I am using jdk 11 and Apache poi 5.2.0 lib. I am getting org.springframework.web.util.NestedServletException handler dispatch failed Could not initialize class sun.awt.X11FontManager exception when I am running my Excel utility application in docker environment. Kindly help me on this. Thanks
you might need to pass -Djava.awt.headless=true to the jvm launched inside the docker image
This is a bug tracker. If you have usage problems, stackoverflow.com is a better solution. There are plenty of questions on there already about X11 setup.
Appreciated, Thanks for the quick response. I have added Djava.awt.headless=true line and rerun my application but facing other issue. .. Now I am getting java.lang.UnsatisfiedLink Error usr/pkg/java/openjdk7/jre/lib/amd64 libfontmanager.so Shared object libfreetype.so.7" not found. Kindly help