12

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?

2
  • 1
    Did you try downloading the binary release (contains jars and dependencies) instead of the source release?
    – Gagravarr
    Commented Feb 19, 2013 at 14:22
  • I tried your solution (which had the jars) and it worked. Thank you for being so prompt!
    – Maria
    Commented Feb 19, 2013 at 14:59

3 Answers 3

27
  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.

18

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.

0

You will have to download the Binary Artifacts of your suitable version where you will find all the necessary jars to add in your classpath to read/write data from Spreadsheets.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.