![]() |
VOOZH | about |
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:
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 |
Maven Dependency: For Maven projects, add the POI dependency in your pom.xml using the following code.
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.