Introduction to Apache POI (original) (raw)

Last Updated : 23 Jan, 2026

Apache POI is an open-source Java library that allows you to create, read, modify, and display Microsoft Office files like Excel, Word, and PowerPoint. Since Java does not natively support Office file formats, POI provides a convenient API for working with these files.

**Supports advanced Excel features:

Common POI Components

Component Use Case
HSSF Read/write Excel .xls files
XSSF Read/write Excel .xlsx files
POIFS Core file system for reading Office files
HWPF Read/write Word .doc files
HSLF Read/edit PowerPoint presentations

Environment Setup

**Maven Dependency: For Maven projects, add the POI dependency in your pom.xml using the following code.

Java `

org.apache.poi poi 3.9

`

**Without Maven: Download the following JAR files from the POI download page and add them to your project:

Note: In Eclipse, go to Window → Show View → Other → Maven → Maven Repositories to manage dependencies.