Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add the Apache POI Library in Eclipse - for Selenium Webdriver project?

I need to add the apache poi to my project (I need hssf, ss and xssf). I downloaded a jar file from the internet but it does not contain xssf. I went to http://poi.apache.org/ and I downloaded this: http://www.apache.org/dyn/closer.cgi/poi/release/src/poi-src-3.9-20121203.zip, I extract it..and got stucked. I tried Part 1 but that was only for JavaDoc.

How should I proceed from here?

like image 384
Maria Avatar asked Feb 19 '13 13:02

Maria


People also ask

How do you check Apache POI is installed or not?

To verify this, execute any of the two commands depending on the platform you are working on. If the Java installation has been done properly, then it will display the current version and specification of your Java installation. A sample output is given in the following table.

How do I use Apache library POI?

Apache POI tutorial provides basic and advanced concepts of Apache POI technology. Our Apache POI tutorial is designed for beginners and professionals. Apache POI is a Java library that is used to handle Microsoft Office Documents. Apache POI is open source, can be used by JVM based programming languages.

How do I install Apache POI to Maven?

To install POI, download a bundle of Jar files from official site poi.apache.org/download.html and use in the application. Following are the minimum required Jars. We can also set dependency in maven project. It need jar files that are used to run the application.


2 Answers

Promoting a comment to an answer

You should head to the Apache POI Download Page, and then download the binary release. The binary releases have -bin- in their file names. The binary releases contain the POI jars, and their dependencies.

What you've downloaded with -src- in the name is the source package, which contains everything you need to build Apache POI yourself, but if you just want to get started you're much better off with the pre-compiled binary package.

like image 137
Gagravarr Avatar answered Oct 10 '22 07:10

Gagravarr


  1. Download The latest stable release: Apache POI 3.16-FINAL distribution,

  2. open your eclipse project properties,

  3. Java Built Path > Libraries > Add external JARs,

  4. then extract the zip file you downloaded and navigate the extracted folder,

  5. select all the JARs under the sub folders (docs, lib, ooxml-lib),

  6. then finally in the Order and Export section put marks to jar libs you just added,

and click OK.

like image 38
cagcak Avatar answered Oct 10 '22 07:10

cagcak