Setup: Maven, Gradle and Eclipse
Harry
· 24 Sep 2026
· 1 views
Log in to track your progress and mark lessons complete.
Sponsored
Maven Dependency
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.5</version>
</dependency>Gradle Dependency
implementation 'org.apache.poi:poi-ooxml:5.2.5'Without a Build Tool (Eclipse)
Download the POI binary distribution, unzip it, then Project → Properties → Java Build Path → Libraries → Add External JARs and select poi-*.jar, poi-ooxml-*.jar plus everything under ooxml-lib/ and lib/.


Version Alignment
Keep poi, poi-ooxml (and poi-ooxml-lite, if used) on the same version. Mixing 5.x with 4.x/3.x is the #1 cause of NoSuchMethodError at runtime.