目前POI的最新版本是 3.16-beta2,该版本是测试版本,稳定版本是 3.15,下载地址为 Apache POI (http://poi.apache.org/download.html)。

一、目录结构

目录结构如下:

二、详细介绍

官方地址:https://poi.apache.org/overview.html。

Maven artifactIdPrerequisitesJARNotes

poi-excelant

poi,poi-ooxml

poi-excelant-version.jar

用于读取表格、写入表格等一系列操作表格所用到的包

Component Map

The Apache POI distribution consists of support for many document file formats. This support is provided in several Jar files. Not all of the Jars are needed for every format. The following tables show the relationships between POI components, Maven repository tags, and the project's Jar files.

ComponentApplication typeMaven artifactIdNotes

OLE2 Filesystem

poi

Required to work with OLE2 / POIFS based files

OLE2 Property Sets

poi

Excel XLS

poi

For HSSF only, if common SS is needed see below

PowerPoint PPT

poi-scratchpad

Word DOC

poi-scratchpad

Visio VSD

poi-scratchpad

Publisher PUB

poi-scratchpad

Outlook MSG

poi-scratchpad

DDF

Escher common drawings

poi

HWMF

WMF drawings

poi-scratchpad

OOXML

poi-ooxml plus either poi-ooxml-schemas or

ooxml-schemas and ooxml-security

See notes below for differences between these options

Excel XLSX

poi-ooxml

PowerPoint PPTX

poi-ooxml

Word DOCX

poi-ooxml

Visio VSDX

poi-ooxml

PowerPoint PPT and PPTX

poi-scratchpad and poi-ooxml

SL code is in the core POI jar, but implementations are in poi-scratchpad and poi-ooxml.

Excel XLS and XLSX

poi-ooxml

WorkbookFactory and friends all require poi-ooxml, not just core poi

This table maps artifacts into the jar file name. "version-yyyymmdd" is the POI version stamp. You can see what the latest stamp is on the downloads page.

Maven artifactIdPrerequisitesJAR

poi-scratchpad

poi-scratchpad-version-yyyymmdd.jar

poi-ooxml

poi-ooxml-version-yyyymmdd.jar

poi-ooxml-schemas

poi-ooxml-schemas-version-yyyymmdd.jar

poi-examples

poi-examples-version-yyyymmdd.jar

Note:Apache commons-collections4 was added as a dependency in POI 3.15 beta 3.

poi-ooxml requires poi-ooxml-schemas. This is a substantially smaller version of the ooxml-schemas jar (ooxml-schemas-1.3.jar for POI 3.14 or later, ooxml-schemas-1.1.jar for POI 3.7 up to POI 3.13, ooxml-schemas-1.0.jar for POI 3.5 and 3.6). The larger ooxml-schemas jar is normally only required for development. Similarly, the ooxml-security jar, which contains all of the classes relating to encryption and signing, is normally only required for development. A subset of its contents are in poi-ooxml-schemas. This JAR is ooxml-security-1.1.jar for POI 3.14 onwards and ooxml-security-1.0.jar prior to that.

The OOXML jars require a stax implementation, but now that Apache POI requires Java 6, that dependency is provided by the JRE and no additional stax jars are required. The OOXML jars used to require DOM4J, but the code has now been changed to use JAXP and no additional dom4j jars are required. By the way, look at this FAQ if you have problems when using a non-Oracle JDK.

The ooxml schemas jars are compiled with Apache XMLBeans 2.3, and so can be used at runtime with any version of XMLBeans from 2.3 or newer. Wherever possible though, we recommend that you use XMLBeans 2.6.0 with Apache POI, and that is the version now shipped in the binary release packages.

总结:按照需要导入jar包及相关依赖jar包。

poi-3.15.jar  (excel文件生成需要)

poi-examples-3.15.jar(官方示例,开发不需要)

poi-excelant-3.15.jar(不需要)

poi-ooxml-3.15.jar(excel,word,ppt均需要)

poi-ooxml-schemas-3.15.jar(excel需要)

poi-scratchpad-3.15.jar(ppt,vsd,word,viso,outlook等需要)

java poi 需要jar_Java 之 POI各Jar包作用相关推荐

  1. java打包成jar_Java程序打包成jar包

    方法一:通过jar命令 jar命令的用法: 下面是jar命令的帮助说明: 用法:jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] ...

  2. poi各种jar包作用和导入

    poi各种jar包作用和导入 目前POI的最新发布版本是poi-bin-3.17-20170915. 下载地址: Apache POI - Download Release Artifacts  ht ...

  3. java命令行执行程序解决依赖外部jar包的问题

    java命令行执行程序解决依赖外部jar包的问题 参考文章: (1)java命令行执行程序解决依赖外部jar包的问题 (2)https://www.cnblogs.com/wangxiaoha/p/6 ...

  4. java 程序打包成jar_Java程序打包成jar包

    二.打包成可运行的jar包 要打包成可运行的jar包,有两种方法,一是手动创建MANIFEST.MF文件,并在其中指定主类;二是使用jar的-e参数指定可运行jar包的入口点(即main类的完全名称) ...

  5. cmd库的导入Java,在cmd命令窗口导入第三方jar包来运行java文件

    在cmd命令窗口导入第三方jar包来运行java文件,以下测试都是基于window环境,Linux环境没有测试. 1.编译 使用命令javac -cp或者javac -classpath 本机测试:如 ...

  6. Java 技术篇-IntelliJ IDEA 导入数据库驱动jar包实例演示

    本文介绍通过 File 的 Project Structure 来导入驱动. Java 操作数据库可以查看: Java 技术篇-java连接并操作数据库实例演示,执行查询.插入.更新和删除操作 点击 ...

  7. java 把依赖打到一个整体jar包里运行(maven)

    一.环境 maven 3.6.1     jdk 1.8 二.运行打成整体的jar包: java -jar [包名] 二.maven 中pom.xml插件: <plugin><art ...

  8. java 命令直接执行(运行)jar 包的几种方法【笔记自用】

    主要有两种方式: 一是打的 jar 包的 META-INF/MANIFEST.MF 文件里指定的 Main-Class:另一个是命令行指定要运行的 Main-Class. 1 jar 包里包含 Mai ...

  9. eclipse java混淆打包_eclipse proguard怎么混淆jar包

    展开全部 android应用程序的混淆打包32313133353236313431303231363533e59b9ee7ad9431333339663933 1 . 在工程文件project.pro ...

最新文章

  1. 源恩教育计算机,源恩计算机二级
  2. cookie mapping
  3. JSON数据表示格式简介(JavaScript对象表示法)
  4. linux扩充单个路径下的内存,超详尽!Linux云服务器存储扩容实操
  5. 黑客窃取思科、IBM与甲骨文认证管理系统内的敏感数据
  6. Linux 命令之 compress -- unix 档案压缩命令
  7. Netty工作笔记0039---Netty模型--详细版
  8. Arcgis 镶嵌栅格报错999999,且生成x3569458.tif文件
  9. edge搁置标签页_如何自定义Microsoft Edge的新标签页
  10. python docx 提取图片_Python提取docx文档中所有嵌入式图片和浮动图片
  11. 南京邮电大学java实验报告_南京邮电大学java第二次实验报告
  12. 扇贝python编程课_扇贝编程APP下载|扇贝编程python V1.1.35 安卓版下载 - 下载银行...
  13. [经验共享] 影像下载篇——在NASA上下载MODIS免费卫星影像的方法
  14. 太棒了 | 辞职之后,去了一趟新疆!
  15. scDeepCluster:Clustering single-cell RNA-seq data with a model-based deep learning approach论文解读
  16. [翻译] LaTeX Error: Environment XXX undefined
  17. 下列有关计算机语言的叙述中,下列关于计算机语言的叙述中,正确的是( )...
  18. 医院移动护理管理系统源码
  19. 图像、视觉处理的相关代码
  20. 医学信息工程考公务员可以报计算机类的吗,医学信息工程专业可以报考公务员吗...

热门文章

  1. linux mk创建文件,Linux运维知识之Linux mkkickstart建立安装的组态文件命令详解
  2. SQL Serever学习7——数据表2
  3. 【java基础】zip压缩文件
  4. jquery 动态添加一行数据,支持动态删除
  5. 想靠大数据创业 你需要了解什么
  6. URAL 1225 Flags
  7. java删除文件夹的所有文件
  8. 转:MVC3系列:~Html.BeginForm与Ajax.BeginForm
  9. Debian Squeeze AMD64安装Oracle 10g x86_64 10.2.0....
  10. 如何在51cto博客中添加QQ链接