I have spring boot 3.2.1 project and I am using apache poi version 5.2.5 when I build the native image I get the error java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.xssf.usermodel.XSSFWorkbook and I am not able to generate excel file. The code works fine when I use docker image.

Also for native image I have added hints hints.reflection().registerType(XSSFWorkbook.class, MemberCategory.values());

still getting same issue

Comment From: wilkinsona

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.