以eclipse Mars版本以及dom4j-1.6.1.jar包为例。
更改.classpath文件引用第三方jar包
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/commons-codec-1.9.jar"/>
<classpathentry kind="lib" path="lib/commons-logging-1.1.3.jar"/>
<classpathentry kind="lib" path="lib/poi-3.12-20150511.jar"/>
<classpathentry kind="lib" path="lib/poi-examples-3.12-20150511.jar"/>
<classpathentry kind="lib" path="lib/poi-excelant-3.12-20150511.jar"/>
<classpathentry kind="lib" path="lib/poi-ooxml-3.12-20150511.jar"/>
<classpathentry kind="lib" path="lib/poi-ooxml-schemas-3.12-20150511.jar"/>
<classpathentry kind="lib" path="lib/poi-scratchpad-3.12-20150511.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
加粗字体表示连接第三方POI