According to the docs : "POI requires Java 8 or newer since version 4.0.1"
So, yes, it is possible to build Apache POI-5.4.1 with JDK 8.