Setup: Maven, Gradle and Eclipse

Harry · 24 Sep 2026 · 1 views
Log in to track your progress and mark lessons complete.

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/.

Adding POI jars to the Eclipse build path

New Java class using Apache POI

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.

Share this post:

Comments (0)

Please login or register to comment.

Create a free account to keep reading

You've enjoyed a free tutorial! Register (it's free) to unlock every tutorial, track your progress and save code.

or sign in with your account

Already have an account? Log in